diff options
| author | Roy Marples <roy@marples.name> | 2014-09-18 13:38:46 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-09-18 13:38:46 +0000 |
| commit | fe6c1b9d5810794d96470b1b93fb86684c24d570 (patch) | |
| tree | e9a99d26ad62ee3f388296f3fee54e16d165ee5d /ipv6nd.c | |
| parent | ba1707605838fa5b8e476256436bd51e59cc733f (diff) | |
| download | dhcpcd-fe6c1b9d5810794d96470b1b93fb86684c24d570.tar.xz | |
Check we have allocated IPv6 resources before checkings RA's.
Fixes [1e770ea479].
Diffstat (limited to 'ipv6nd.c')
| -rw-r--r-- | ipv6nd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -397,6 +397,9 @@ ipv6nd_addrexists(struct dhcpcd_ctx *ctx, const struct ipv6_addr *addr) struct ra *rap; struct ipv6_addr *ap; + if (ctx->ipv6 == NULL) + return 0; + TAILQ_FOREACH(rap, ctx->ipv6->ra_routers, next) { TAILQ_FOREACH(ap, &rap->addrs, next) { if (addr == NULL) { |
