1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

sd-radv: make sure we can deal with in_addr_to_string() failing

This commit is contained in:
Lennart Poettering 2018-11-26 22:12:38 +01:00
parent cfffddeac5
commit 5a9fca258b

View File

@ -272,9 +272,9 @@ static int radv_recv(sd_event_source *s, int fd, uint32_t revents, void *userdat
r = radv_send(ra, &src, ra->lifetime);
if (r < 0)
log_radv_errno(r, "Unable to send solicited Router Advertisement to %s: %m", addr);
log_radv_errno(r, "Unable to send solicited Router Advertisement to %s: %m", strnull(addr));
else
log_radv("Sent solicited Router Advertisement to %s", addr);
log_radv("Sent solicited Router Advertisement to %s", strnull(addr));
return 0;
}