From: Roy Marples Date: Sun, 18 Jan 2015 20:34:57 +0000 (+0000) Subject: Fix which interface to test ip6_use_tempaddr on when adding. X-Git-Tag: v6.7.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e16d38e996e40c3b9f58a8bc2f42dc77244f536;p=thirdparty%2Fdhcpcd.git Fix which interface to test ip6_use_tempaddr on when adding. --- diff --git a/ipv6.c b/ipv6.c index 6d0fe68b..33650f15 100644 --- a/ipv6.c +++ b/ipv6.c @@ -711,7 +711,7 @@ ipv6_addaddr(struct ipv6_addr *ap, const struct timeval *now) ap->prefix_pltime && ap->prefix_vltime && ap->iface->options->options & DHCPCD_IPV6RA_OWN && - ip6_use_tempaddr(ifp->name)) + ip6_use_tempaddr(ap->iface->name)) eloop_timeout_add_sec(ap->iface->ctx->eloop, (time_t)ap->prefix_pltime - REGEN_ADVANCE, ipv6_regentempaddr, ap);