Always check for null pointers! bug748268-DEPREF6-v2
authorTJ <gnome@iam.tj>
Thu, 31 Mar 2016 23:44:46 +0000 (00:44 +0100)
committerTJ <gnome@iam.tj>
Thu, 31 Mar 2016 23:44:46 +0000 (00:44 +0100)
Signed-off-by: TJ <gnome@iam.tj>
src/devices/nm-device.c

index ec85090..e330175 100644 (file)
@@ -5271,7 +5271,7 @@ dhcp6_state_changed (NMDhcpClient *client,
        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: