if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc,
NULL, NULL, NULL, NULL );
+ entry_free( e );
+ return rc;
}
if ( global_readonly || be->be_readonly ) {
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc,
NULL, NULL, NULL, NULL );
+ goto cleanup;
}
if ( be->be_bind ) {
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc,
NULL, NULL, NULL, NULL );
+ goto cleanup;
}
/* deref suffix alias if appropriate */
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc,
NULL, NULL, NULL, NULL );
+ goto cleanup;
}
if ( global_readonly || be->be_readonly ) {
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc,
NULL, NULL, NULL, NULL );
+ goto cleanup;
}
if ( global_readonly || be->be_readonly ) {
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc,
NULL, NULL, NULL, NULL );
+ goto cleanup;
}
if ( global_readonly || be->be_readonly ) {
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc,
NULL, NULL, NULL, NULL );
+ goto return_results;
}
/* deref the base if needed */