]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1426734
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 8 Feb 2018 14:42:16 +0000 (15:42 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 12 Feb 2018 16:20:39 +0000 (17:20 +0100)
Argument cannot be negative

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

index 65ae9aa05340d0f0327ec5269e5ea4c00f7470bb..acd8bfac8492fb54105f502e3c619ee2c5980196 100644 (file)
@@ -239,7 +239,6 @@ int lxc_monitor_open(const char *lxcpath)
 
        if (fd < 0) {
                ERROR("Failed to connect to monitor socket: %s.", strerror(errno));
-               close(fd);
                return -1;
        }