From: Roy Marples Date: Mon, 18 Feb 2013 10:37:02 +0000 (+0000) Subject: Don't reboot if we don't have an active state. X-Git-Tag: v5.99.6~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b70a24e9247381d541415f5c3880d37cdc08a4b;p=thirdparty%2Fdhcpcd.git Don't reboot if we don't have an active state. --- diff --git a/dhcp.c b/dhcp.c index 6ae46b91..deabd773 100644 --- a/dhcp.c +++ b/dhcp.c @@ -1942,6 +1942,8 @@ dhcp_reboot(struct interface *ifp, int oldopts) 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) &&