make sure matched is NULL when err=SUCCESS (ITS#6774)

This commit is contained in:
Pierangelo Masarati 2011-01-04 18:27:02 +00:00
parent 31199e1847
commit fc6bd40dfc

View file

@ -1918,7 +1918,7 @@ free_message:;
}
rs->sr_err = sres;
rs->sr_matched = matched;
rs->sr_matched = ( sres == LDAP_SUCCESS ? NULL : matched );
rs->sr_ref = ( sres == LDAP_REFERRAL ? rs->sr_v2ref : NULL );
send_ldap_result( op, rs );
op->o_private = savepriv;