Signed-off-by: TJ <gnome@iam.tj>
case NM_DHCP_STATE_EXPIRE:
/* Ignore expiry before we even have a lease (NAK, old lease, etc) */
/* Don't fail when a DEPREF6 has caused the EXPIRE6; wait for the new lease */
- if (priv->ip6_state != IP_CONF && strcmp (event_id, "deprefer"))
+ if (priv->ip6_state != IP_CONF && event_id && strcmp (event_id, "deprefer"))
dhcp6_fail (self, FALSE);
break;
case NM_DHCP_STATE_DONE: