parent 5335a80f
...@@ -671,6 +671,8 @@ static int set_config_net_ipv4_address(const char *key, const char *value, ...@@ -671,6 +671,8 @@ static int set_config_net_ipv4_address(const char *key, const char *value,
} else { } else {
inetdev->prefix = config_ip_prefix(&inetdev->addr); inetdev->prefix = config_ip_prefix(&inetdev->addr);
} }
if (inetdev->prefix > 32)
return ret_errno(EINVAL);
/* If no broadcast address, let compute one from the /* If no broadcast address, let compute one from the
* prefix and address. * prefix and address.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment