summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-05-09 06:02:49 +0000
committerRoy Marples <roy@marples.name>2015-05-09 06:02:49 +0000
commitaa9fc372f199558e7985413cd6047120f91a6044 (patch)
treedfe17fbc5c97db17e4f3ccc86e0463117aca1067 /ipv6nd.c
parent474ba00c161e950a39111c7d3b37b3176d898b69 (diff)
downloaddhcpcd-aa9fc372f199558e7985413cd6047120f91a6044.tar.xz
Check if we have an IPv6 context before expiring RA's.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c3
1 files changed, 3 insertions, 0 deletions
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) {