diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-26 22:12:38 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-26 22:31:15 +0100 |
commit | 5a9fca258bd03cc7cd8d4fb277b6f4fddac2310e (patch) | |
tree | 63ecf2d6ecb31f16c4c6801ed0ac800e9db8db79 /src | |
parent | sd-radv: when receiving a too short packet, make sure we dequeue it (diff) | |
download | systemd-5a9fca258bd03cc7cd8d4fb277b6f4fddac2310e.tar.xz systemd-5a9fca258bd03cc7cd8d4fb277b6f4fddac2310e.zip |
sd-radv: make sure we can deal with in_addr_to_string() failing
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-network/sd-radv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-radv.c b/src/libsystemd-network/sd-radv.c index 7b51f28ff2..33bf4cf79f 100644 --- a/src/libsystemd-network/sd-radv.c +++ b/src/libsystemd-network/sd-radv.c @@ -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; } |