From 8dd8e6800b433df85a1a6411a3b182ca851e513f Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 26 Oct 2010 21:27:10 +0200 Subject: [PATCH] ipv4: Return 32 as a prefix length for a NULL netmask --- src/ipv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipv4.c b/src/ipv4.c index 7ca834d..c73f651 100644 --- a/src/ipv4.c +++ b/src/ipv4.c @@ -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); -- 2.7.4