From: Howard Chu Date: Tue, 10 Feb 2009 20:07:24 +0000 (+0000) Subject: ITS#5939 plug descriptor leak X-Git-Tag: ACLCHECK_0~840 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=868ea3568ce9daaa691d0f0295119736c6e5dfd0;p=openldap ITS#5939 plug descriptor leak --- 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 ); }