mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#5939 plug descriptor leak
This commit is contained in:
parent
cca8c1953e
commit
868ea3568c
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user