diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-26 21:27:10 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-26 21:27:10 +0200 |
commit | 8dd8e6800b433df85a1a6411a3b182ca851e513f (patch) | |
tree | 54c05ee7764583e57f57beae601eceaf0c009fd8 | |
parent | 0b3daa981d62a6a6831b5191ec8507c8749728ac (diff) | |
download | connman-8dd8e6800b433df85a1a6411a3b182ca851e513f.tar.gz connman-8dd8e6800b433df85a1a6411a3b182ca851e513f.tar.bz2 connman-8dd8e6800b433df85a1a6411a3b182ca851e513f.zip |
ipv4: Return 32 as a prefix length for a NULL netmask
-rw-r--r-- | src/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |