From 96924f75535f12ad4eb971a2b713b3ba3590ee1e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 27 Dec 2016 10:48:21 +0000 Subject: [PATCH] ctdb: Fix CID 1398178 Argument cannot be negative Signed-off-by: Volker Lendecke Reviewed-by: David Disseldorp --- ctdb/common/sock_io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ctdb/common/sock_io.c b/ctdb/common/sock_io.c index 7245d4e973d..b3581fc4721 100644 --- a/ctdb/common/sock_io.c +++ b/ctdb/common/sock_io.c @@ -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; } -- 2.34.1