mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#2486: plug leak
This commit is contained in:
parent
5d2b493ff3
commit
ecb17fc30e
1 changed files with 4 additions and 4 deletions
|
|
@ -1711,9 +1711,6 @@ ldap_start_tls_s ( LDAP *ld,
|
|||
|
||||
rc = ldap_extended_operation_s( ld, LDAP_EXOP_START_TLS,
|
||||
NULL, serverctrls, clientctrls, &rspoid, &rspdata );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
if ( rspoid != NULL ) {
|
||||
LDAP_FREE(rspoid);
|
||||
|
|
@ -1723,7 +1720,10 @@ ldap_start_tls_s ( LDAP *ld,
|
|||
ber_bvfree( rspdata );
|
||||
}
|
||||
|
||||
rc = ldap_int_tls_start( ld, ld->ld_defconn, NULL );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
rc = ldap_int_tls_start( ld, ld->ld_defconn, NULL );
|
||||
}
|
||||
|
||||
#else
|
||||
rc = LDAP_NOT_SUPPORTED;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue