ifcfg: fix crash parsing more than 10 DNS settings in make_ip6_setting()

On master, commit [1] added a double-free error. This was
unintentionally fixed later in commit [2].

Commit [1] was backported to nm-1-10 branch in 1.10.10.

Fix it.

[1] a9b5079324, 1.11.2-dev
[2] e9321713a9, 1.12-rc1

https://bugzilla.redhat.com/show_bug.cgi?id=1607866

Fixes: b2a9e2f326
This commit is contained in:
Thomas Haller 2018-10-19 18:01:07 +02:00
parent 5afec82a5c
commit cca492af14

View file

@ -1933,7 +1933,7 @@ make_ip6_setting (shvarFile *ifcfg,
goto error;
}
g_free (value);
nm_clear_g_free (&value);
}
if (!routes_read) {