From 2012891b585c316ad77ea55b46a8fbaaddb90d90 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 6 Jun 2020 20:52:28 +0100 Subject: [PATCH] RA: Abort if no state We might have received data for an interface before its been initialised. --- src/ipv6nd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2