From: Roy Marples Date: Sat, 6 Jun 2020 19:52:28 +0000 (+0100) Subject: RA: Abort if no state X-Git-Tag: v9.1.2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2012891b585c316ad77ea55b46a8fbaaddb90d90;p=thirdparty%2Fdhcpcd.git RA: Abort if no state We might have received data for an interface before its been initialised. --- 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