]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Avoid crash when LXC start fails with no interface target
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Nov 2012 16:36:52 +0000 (16:36 +0000)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:53:39 +0000 (16:53 -0500)
commit74aa3ffec212989375599974e1cb984b1993aa0f
tree920d6f8a35090e3b16af624a8621d7ece296dce8
parent49ed3cd1f60b8e54e2a6d0100f762bf49f2767b4
Avoid crash when LXC start fails with no interface target

If the <interface> device did not contain any <target>
element, LXC would crash on a NULL pointer if starting
the container failed

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 68dceb635d8d8f68e36caf4054c32f0f9cb13c22)
src/lxc/lxc_process.c