ITS#2486: plug leak

This commit is contained in:
Kurt Zeilenga 2003-05-05 17:35:59 +00:00
parent 5d2b493ff3
commit ecb17fc30e

View File

@ -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