summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/sd-radv.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-09-04 09:51:25 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-09-04 12:31:40 +0200
commit4674f407b2a96baaed4c8226342bccb313463717 (patch)
tree02e2faa401665843ecdd10511972daad1b84c689 /src/libsystemd-network/sd-radv.c
parentMerge pull request #29055 from mrc0mmand/bash-comp (diff)
downloadsystemd-4674f407b2a96baaed4c8226342bccb313463717.tar.xz
systemd-4674f407b2a96baaed4c8226342bccb313463717.zip
sd-ndisc,sd-radv: fix use of uninitialized value
When icmp6_receive() fails, then the source address is not initialized yet.
Diffstat (limited to 'src/libsystemd-network/sd-radv.c')
-rw-r--r--src/libsystemd-network/sd-radv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-radv.c b/src/libsystemd-network/sd-radv.c
index cb7bc07f5a..afb0fd95b6 100644
--- a/src/libsystemd-network/sd-radv.c
+++ b/src/libsystemd-network/sd-radv.c
@@ -264,8 +264,7 @@ static int radv_recv(sd_event_source *s, int fd, uint32_t revents, void *userdat
if (r < 0)
switch (r) {
case -EADDRNOTAVAIL:
- log_radv(ra, "Received RS from non-link-local address %s. Ignoring",
- IN6_ADDR_TO_STRING(&src));
+ log_radv(ra, "Received RS from non-link-local address. Ignoring");
return 0;
case -EMULTIHOP: