]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
RA: Abort if no state
authorRoy Marples <roy@marples.name>
Sat, 6 Jun 2020 19:52:28 +0000 (20:52 +0100)
committerRoy Marples <roy@marples.name>
Sat, 6 Jun 2020 19:52:28 +0000 (20:52 +0100)
We might have received data for an interface before
its been initialised.

src/ipv6nd.c

index 9e89880bc41314a55be6bceae3ca3fbe2e53b44e..504e647dd9f4edca683225a98ea8e26047b5d7eb 100644 (file)
@@ -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