From: Roy Marples Date: Tue, 1 Jul 2014 21:14:59 +0000 (+0000) Subject: Set addr to zero if unset. X-Git-Tag: v6.4.1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=555e4ee5457c350c0a58f70283fc223335d2a596;p=thirdparty%2Fdhcpcd.git Set addr to zero if unset. --- diff --git a/dhcpcd.c b/dhcpcd.c index d43bbf2f..075743a0 100644 --- 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; }