]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Check if we have an IPv6 context before expiring RA's.
authorRoy Marples <roy@marples.name>
Sat, 9 May 2015 06:02:49 +0000 (06:02 +0000)
committerRoy Marples <roy@marples.name>
Sat, 9 May 2015 06:02:49 +0000 (06:02 +0000)
ipv6nd.c

index 89f6782f73a1570b248a7473945e6d97bf099f87..9c3ee10abcfb4f2cda47a7928fa0ff1625bf2e33 100644 (file)
--- 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) {