NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: regression w/latest dhcpcd?



Hi John.

It seems I didn't test this thoroughly enough as I was pressed with an urgent matter with getting a new release in and I do appologise for that :(

This patch should help.
Let me know!

Roy
diff --git a/src/dhcp.c b/src/dhcp.c
index f24d14f6..8291dd23 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -3499,6 +3499,11 @@ dhcp_readudp(struct dhcpcd_ctx *ctx, struct interface *ifp)
 			logerr(__func__);
 			return;
 		}
+		if (D_CSTATE(ifp) == NULL) {
+			logdebugx("%s: received BOOTP for inactive interface",
+			    ifp->name);
+			return;
+		}
 	}
 
 	dhcp_handlebootp(ifp, (struct bootp *)buf, (size_t)bytes,


Home | Main Index | Thread Index | Old Index