From 868ea3568ce9daaa691d0f0295119736c6e5dfd0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 10 Feb 2009 20:07:24 +0000 Subject: [PATCH] ITS#5939 plug descriptor leak --- servers/slapd/back-sock/opensock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/back-sock/opensock.c b/servers/slapd/back-sock/opensock.c index b2a9943ea1..b02e573370 100644 --- a/servers/slapd/back-sock/opensock.c +++ b/servers/slapd/back-sock/opensock.c @@ -57,6 +57,7 @@ opensock( if ( connect( fd, (struct sockaddr *)&sockun, sizeof(sockun) ) < 0 ) { Debug( LDAP_DEBUG_ANY, "socket connect(%s) failed\n", sockpath ? sockpath : "", 0, 0 ); + close( fd ); return( NULL ); } -- 2.39.5