return error code only if required (ITS#3042)

This commit is contained in:
Pierangelo Masarati 2004-04-03 12:15:33 +00:00
parent e1fc5012bd
commit 58c637479d

View File

@ -258,7 +258,9 @@ finish:;
ldap_back_dn_massage( &dc, &matched, &mmatch );
}
rs->sr_err = rres;
if ( rres != LDAP_SUCCESS ) {
rs->sr_err = rres;
}
rs->sr_matched = mmatch.bv_val;
send_ldap_result( op, rs );
rs->sr_matched = NULL;