]> git.ipfire.org Git - thirdparty/lxc.git/commit
Set the right variable to NULL when unsetting ipv6_gateway
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 12 Jan 2016 02:25:19 +0000 (18:25 -0800)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 22:42:32 +0000 (17:42 -0500)
commitd06c1c95516af45ebea611058566ef90ebd8226d
treee2176c1fded246830e956df4d2bdf8907fa2168e
parent0bf8913d50fcf6bc66d2709f1a2575c29cc27670
Set the right variable to NULL when unsetting ipv6_gateway

We were freeing one and setting a different one to NULL, eventually
leading to a crash when closing the netdev (at container shutdown)
and freeing already-freed memory.

Closes #732

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/confile.c