ITS#9147 plug descriptor leak if ldaps connect fails

This commit is contained in:
Howard Chu 2020-01-11 04:16:01 +00:00
parent edec2e84c2
commit e2e17dd2f1

View file

@ -525,6 +525,7 @@ ldap_int_open_connection(
} }
LDAP_MUTEX_UNLOCK( &lo->ldo_mutex ); LDAP_MUTEX_UNLOCK( &lo->ldo_mutex );
} }
ber_int_sb_close( conn->lconn_sb );
return -1; return -1;
} }
} }