diff options
| author | Roy Marples <roy@marples.name> | 2016-07-26 21:05:18 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-07-26 21:05:18 +0000 |
| commit | d3826f33d84a5946b297551df277eada5c64b6df (patch) | |
| tree | 7f069b4cbe84a6a9d7df11cc9289fe582c547308 /ipv6nd.c | |
| parent | fee9f6e080ff9ea9ac187d516408050879a8797c (diff) | |
| download | dhcpcd-d3826f33d84a5946b297551df277eada5c64b6df.tar.xz | |
Fix a crash accidently introduced prior patch.
Diffstat (limited to 'ipv6nd.c')
| -rw-r--r-- | ipv6nd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1310,6 +1310,11 @@ ipv6nd_handleifa(int cmd, struct ipv6_addr *addr) { struct ra *rap; + /* IPv6 init may not have happened yet if we are learning + * existing addresses when dhcpcd starts. */ + if (addr->iface->ctx->ipv6 == NULL) + return; + TAILQ_FOREACH(rap, addr->iface->ctx->ipv6->ra_routers, next) { if (rap->iface != addr->iface) continue; |
