]> git.ipfire.org Git - thirdparty/lxc.git/commit
Use correct return when clone fails
authorChristian Brauner <christianvanbrauner@gmail.com>
Mon, 9 Nov 2015 20:47:27 +0000 (21:47 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 17 Nov 2015 16:35:44 +0000 (11:35 -0500)
commitdca0532e37e44d1703b9fc80975d45dcffb0c27d
tree727033f19a4df301a58af9954574f2ac581b6854
parent2b47bac3f81af9eb8ba392867c78fe3dec40a36a
Use correct return when clone fails

When the clone failed we tried to destroy the container. This will lead to a
segfault. Instead simply return -1. Also move the call to free_mnts() after the
put label to free the user specified mounts even when we just goto put.

Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc_copy.c