diff options
| author | Roy Marples <roy@marples.name> | 2015-05-09 06:02:49 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-05-09 06:02:49 +0000 |
| commit | aa9fc372f199558e7985413cd6047120f91a6044 (patch) | |
| tree | dfe17fbc5c97db17e4f3ccc86e0463117aca1067 /ipv6nd.c | |
| parent | 474ba00c161e950a39111c7d3b37b3176d898b69 (diff) | |
| download | dhcpcd-aa9fc372f199558e7985413cd6047120f91a6044.tar.xz | |
Check if we have an IPv6 context before expiring RA's.
Diffstat (limited to 'ipv6nd.c')
| -rw-r--r-- | ipv6nd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |
