mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-15 07:10:25 +01:00
ifcfg-rh: fix potential crash with variadic argument make_ip6_setting()
It is undefined behavior and can lead to crashes or memory corruption. In practice, this only had an issue on Big Endian systems. Fixes:fdbf4ae5e6('ifcfg-rh: add IPV4_DHCP_TIMEOUT key for ipv4.dhcp-timeout property') (cherry picked from commit9b82d29f5f)
This commit is contained in:
parent
7751f853c3
commit
fe6c3f0867
1 changed files with 1 additions and 1 deletions
|
|
@ -1692,7 +1692,7 @@ make_ip4_setting (shvarFile *ifcfg,
|
|||
|
||||
g_object_set (s_ip4,
|
||||
NM_SETTING_IP_CONFIG_DHCP_SEND_HOSTNAME, svGetValueBoolean (ifcfg, "DHCP_SEND_HOSTNAME", TRUE),
|
||||
NM_SETTING_IP_CONFIG_DHCP_TIMEOUT, svGetValueInt64 (ifcfg, "IPV4_DHCP_TIMEOUT", 10, 0, G_MAXINT32, 0),
|
||||
NM_SETTING_IP_CONFIG_DHCP_TIMEOUT, (int) svGetValueInt64 (ifcfg, "IPV4_DHCP_TIMEOUT", 10, 0, G_MAXINT32, 0),
|
||||
NULL);
|
||||
|
||||
nm_clear_g_free (&value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue