ipv4: Return 32 as a prefix length for a NULL netmask
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 26 Oct 2010 19:27:10 +0000 (21:27 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 26 Oct 2010 19:27:10 +0000 (21:27 +0200)
src/ipv4.c

index 7ca834d..c73f651 100644 (file)
@@ -90,7 +90,7 @@ static int ipv4_probe(struct connman_element *element)
        DBG("netmask %s", netmask);
        DBG("broadcast %s", broadcast);
 
-       if (address == NULL || netmask == NULL)
+       if (address == NULL)
                return -EINVAL;
 
        prefixlen = __connman_ipconfig_netmask_prefix_len(netmask);