resolved: don't try to print error strings, where errno isn't set

This commit is contained in:
Lennart Poettering 2016-01-18 23:29:04 +01:00
parent 4dd15077f3
commit e09f605eec
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}