]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Avoid segfault of libvirt_lxc helper on early cleanup paths
authorPeter Krempa <pkrempa@redhat.com>
Mon, 26 Nov 2012 11:13:56 +0000 (12:13 +0100)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:35:53 +0000 (16:35 -0500)
commitfac1a19dfca0a8bc2cb618e0b96119fd3dd07e55
treed0b8709e589c235378e104af6c57a0fbf4e797c4
parent89cecbbecc71fc8667baeef528160a688631b986
lxc: Avoid segfault of libvirt_lxc helper on early cleanup paths

Early jumps to the cleanup label caused a crash of the libvirt_lxc
container helper as the cleanup section called
virLXCControllerDeleteInterfaces(ctrl) without checking the ctrl argument
for NULL. The argument was de-referenced soon after.

$ /usr/libexec/libvirt_lxc
/usr/libexec/libvirt_lxc: missing --name argument for configuration
Segmentation fault
(cherry picked from commit 81efb13b4a33f58c28e0e65dcc9521b983592683)
src/lxc/lxc_controller.c