mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03:00
resolved: don't try to print error strings, where errno isn't set
This commit is contained in:
parent
4dd15077f3
commit
e09f605eec
@ -967,12 +967,12 @@ static int on_dns_packet(sd_event_source *s, int fd, uint32_t revents, void *use
|
||||
return 0;
|
||||
}
|
||||
if (r == 0) {
|
||||
log_debug("Received inappropriate DNS packet as response, ignoring: %m");
|
||||
log_debug("Received inappropriate DNS packet as response, ignoring.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (DNS_PACKET_ID(p) != t->id) {
|
||||
log_debug("Received packet with incorrect transaction ID, ignoring: %m");
|
||||
log_debug("Received packet with incorrect transaction ID, ignoring.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user