From: Roy Marples Date: Tue, 4 Jun 2013 13:41:34 +0000 (+0000) Subject: Fix compile on Linux X-Git-Tag: v6.0.0~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc222356dbead3396a239e8fdb7553cd6941b209;p=thirdparty%2Fdhcpcd.git Fix compile on Linux --- diff --git a/if-linux.c b/if-linux.c index e0b6587a..0277f075 100644 --- a/if-linux.c +++ b/if-linux.c @@ -665,7 +665,7 @@ if_address6(const struct ipv6_addr *ap, int action) nlm->ifa.ifa_prefixlen = ap->prefix_len; /* This creates the aliased interface */ add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LABEL, - ifp->name, strlen(ifp->name) + 1); + ap->iface->name, strlen(ap->iface->name) + 1); add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LOCAL, &ap->addr.s6_addr, sizeof(ap->addr.s6_addr));