changeset 1853:e6eebb123e36 draft

Don't reboot if we don't have an active state.
author Roy Marples <roy@marples.name>
date Mon, 18 Feb 2013 10:37:02 +0000
parents 88c0d789333e
children c6a5468314d3
files dhcp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp.c	Mon Feb 18 10:35:47 2013 +0000
+++ b/dhcp.c	Mon Feb 18 10:37:02 2013 +0000
@@ -1942,6 +1942,8 @@
 	struct if_options *ifo = ifp->options;
 	struct dhcp_state *state = D_STATE(ifp);
 
+	if (state == NULL)
+		return;
 	ifo = ifp->options;
 	state->interval = 0;
 	if ((ifo->options & (DHCPCD_INFORM | DHCPCD_STATIC) &&