changeset 5322:3dd079b1d37b draft

RA: Abort if no state We might have received data for an interface before its been initialised.
author Roy Marples <roy@marples.name>
date Sat, 06 Jun 2020 20:52:28 +0100
parents 41b99a2a12cf
children 742ab5ed32b8
files src/ipv6nd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ipv6nd.c	Fri Jun 05 20:24:21 2020 +0100
+++ b/src/ipv6nd.c	Sat Jun 06 20:52:28 2020 +0100
@@ -1100,7 +1100,7 @@
 	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