Commit 783def35 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Plug leak.

parent cee5f9d8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment