From: Serge Hallyn Date: Mon, 8 Jun 2015 15:37:55 +0000 (-0500) Subject: coverity: don't risk exec()ing NULL X-Git-Tag: lxc-1.1.3~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2af441f1dc45b85a428d4414dd1a29781ddac541;p=thirdparty%2Flxc.git coverity: don't risk exec()ing NULL Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index c6b1863a9..667f5d978 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -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 {