mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Plug leak.
This commit is contained in:
parent
cee5f9d801
commit
783def35f0
1 changed files with 3 additions and 4 deletions
|
|
@ -1724,9 +1724,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);
|
||||
|
|
@ -1736,7 +1733,9 @@ 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