]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: don't risk exec()ing NULL
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 8 Jun 2015 15:37:55 +0000 (10:37 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 1 Jul 2015 17:44:38 +0000 (13:44 -0400)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/criu.c

index c6b1863a9a58826692bc624e817bb5005db0fb49..667f5d978756580fc05524fd1f2edacd919194ea 100644 (file)
@@ -231,6 +231,9 @@ static bool criu_version_ok()
                        exit(1);
 
                path = on_path("criu", NULL);
+               if (!path)
+                       exit(1);
+
                execv(path, args);
                exit(1);
        } else {