summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index f4de736a..3425b6d1 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -227,6 +227,8 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)
gateway = g_strdup(option->data);
prefixlen = __connman_ipconfig_netmask_prefix_len(netmask);
+ if (prefixlen == 255)
+ connman_warn("netmask: %s is invalid", netmask);
DBG("c_address %s", c_address);