]> git.proxmox.com Git - mirror_lxc.git/commitdiff
coverity: #1426083
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 8 Feb 2018 15:04:03 +0000 (16:04 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 9 Feb 2018 09:37:53 +0000 (10:37 +0100)
Dereference after null check

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/tests/share_ns.c

index 70a755946586ac317feab77c78cc6bdf7ca6a632..d65aef85a7d4456752788113327b4dfb015ba62d 100644 (file)
@@ -56,7 +56,7 @@ void *ns_sharing_wrapper(void *data)
        c = lxc_container_new(name, NULL);
        if (!c) {
                lxc_error("Failed to create container \"%s\"\n", name);
-               goto out;
+               return NULL;
        }
 
        if (c->is_defined(c)) {