summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-06 20:52:28 +0100
committerRoy Marples <roy@marples.name>2020-06-06 20:52:28 +0100
commit2012891b585c316ad77ea55b46a8fbaaddb90d90 (patch)
treed66b7bbeeb2d106453d98f4097c1ee8fbedf51fc /src/ipv6nd.c
parent7ef3d6a703f5c3b1fa537ae324f7d79f085f31f9 (diff)
downloaddhcpcd-2012891b585c316ad77ea55b46a8fbaaddb90d90.tar.xz
RA: Abort if no state
We might have received data for an interface before its been initialised.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 9e89880b..504e647d 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -1100,7 +1100,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx,
bool new_ia;
#endif
- if (ifp == NULL) {
+ if (ifp == NULL || RS_STATE(ifp) == NULL) {
#ifdef DEBUG_RS
logdebugx("RA for unexpected interface from %s", sfrom);
#endif