mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 16:00:32 +01:00
ifcfg-rh: avoid parsing the IPV6_PRIVACY string twice
This saves a couple of CPU cycles that would be better used for something more useful, such as looking for transmissions from aliens.
This commit is contained in:
parent
577ba42e18
commit
2e8f40f2c9
1 changed files with 1 additions and 1 deletions
|
|
@ -1477,7 +1477,7 @@ make_ip6_setting (shvarFile *ifcfg,
|
|||
/* Read IPv6 Privacy Extensions configuration */
|
||||
str_value = svGetValueString (ifcfg, "IPV6_PRIVACY");
|
||||
if (str_value) {
|
||||
ip6_privacy = svGetValueBoolean (ifcfg, "IPV6_PRIVACY", FALSE);
|
||||
ip6_privacy = svParseBoolean (str_value, FALSE);
|
||||
if (!ip6_privacy)
|
||||
ip6_privacy = (g_strcmp0 (str_value, "rfc4941") == 0) ||
|
||||
(g_strcmp0 (str_value, "rfc3041") == 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue