ITS#5939 plug descriptor leak

This commit is contained in:
Howard Chu 2009-02-10 20:07:24 +00:00
parent cca8c1953e
commit 868ea3568c

View File

@ -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 : "<null>", 0, 0 );
close( fd );
return( NULL );
}