ctdb: Fix CID 1398178 Argument cannot be negative
[samba.git] / 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;
        }