aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tran_sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tran_sock.c b/lib/tran_sock.c
index 9e73493..6637b40 100644
--- a/lib/tran_sock.c
+++ b/lib/tran_sock.c
@@ -507,6 +507,7 @@ open_sock(lm_ctx_t *lm_ctx)
ret = negotiate(lm_ctx, conn_fd);
if (ret < 0) {
+ close(conn_fd);
return ret;
}