ctdb: Fix CID 1398178 Argument cannot be negative
authorVolker Lendecke <vl@samba.org>
Tue, 27 Dec 2016 10:48:21 +0000 (10:48 +0000)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 27 Dec 2016 13:21:27 +0000 (14:21 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
ctdb/common/sock_io.c

index 7245d4e973d3d054975012873bacc7e5df273cd9..b3581fc4721a4be4498b71fceea1b25022e45b7f 100644 (file)
@@ -53,7 +53,6 @@ int sock_connect(const char *sockpath)
        fd = socket(AF_UNIX, SOCK_STREAM, 0);
        if (fd == -1) {
                D_ERR("socket() failed, errno=%d\n", errno);
-               close(fd);
                return -1;
        }