]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Set addr to zero if unset.
authorRoy Marples <roy@marples.name>
Tue, 1 Jul 2014 21:14:59 +0000 (21:14 +0000)
committerRoy Marples <roy@marples.name>
Tue, 1 Jul 2014 21:14:59 +0000 (21:14 +0000)
dhcpcd.c

index d43bbf2f3180d3613a708032dfe75f0b54f938b4..075743a0a46802dc458e09419bb47c52c28a67ff 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -442,6 +442,8 @@ configure_interface1(struct interface *ifp)
                                ifo->ia->ia_type = D6_OPTION_IA_NA;
                                memcpy(ifo->ia->iaid, ifo->iaid,
                                    sizeof(ifo->iaid));
+                               memset(&ifo->ia->addr, 0,
+                                   sizeof(ifo->ia->addr));
                                ifo->ia->sla = NULL;
                                ifo->ia->sla_len = 0;
                        }