]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Don't crash if no security driver is specified in libvirt_lxc
authorPeter Krempa <pkrempa@redhat.com>
Mon, 26 Nov 2012 14:17:58 +0000 (15:17 +0100)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:35:57 +0000 (16:35 -0500)
commitbf8efc3398b838f9782a5dc36842a35d045e3b9b
treee7e666ced22b70f3ed68782b3502b3583cc249fc
parentfac1a19dfca0a8bc2cb618e0b96119fd3dd07e55
lxc: Don't crash if no security driver is specified in libvirt_lxc

When no security driver is specified libvirt_lxc segfaults as a debug
message tries to access security labels for the container that are not
present.

This problem was introduced in commit 6c3cf57d6cb27cf10064baf8cca0f39.
(cherry picked from commit 99a388e612d82a6bcd3462e4b98463fb32931520)
src/lxc/lxc_controller.c