From: Roy Marples Date: Sat, 9 May 2015 06:02:49 +0000 (+0000) Subject: Check if we have an IPv6 context before expiring RA's. X-Git-Tag: v6.9.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa9fc372f199558e7985413cd6047120f91a6044;p=thirdparty%2Fdhcpcd.git Check if we have an IPv6 context before expiring RA's. --- diff --git a/ipv6nd.c b/ipv6nd.c index 89f6782f..9c3ee10a 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -322,6 +322,9 @@ ipv6nd_expire(struct interface *ifp, uint32_t seconds) struct ra *rap; struct timespec now; + if (ifp->ctx->ipv6 == NULL) + return; + get_monotonic(&now); TAILQ_FOREACH(rap, ifp->ctx->ipv6->ra_routers, next) {