mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 05:10:09 +01:00
initrd: fix error reporting on bad netmask
It says the address is bad, but what is wrong is the mask.
This commit is contained in:
parent
3698e24eba
commit
4b097e314e
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ parse_ip (GHashTable *connections, const char *sysfs_dir, char *argument)
|
|||
if (nm_utils_parse_inaddr_bin (AF_INET, netmask, NULL, &addr)) {
|
||||
client_ip_prefix = nm_utils_ip4_netmask_to_prefix (addr.addr4);
|
||||
} else {
|
||||
_LOGW (LOGD_CORE, "Unrecognized address: %s", client_ip);
|
||||
_LOGW (LOGD_CORE, "Invalid IP mask: %s", netmask);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue