Avoid use of uninitialized variable 'e' after failed overlay_entry_get_ov().

(It was harmless unless the value was a trap representation.)
This commit is contained in:
Hallvard Furuseth 2008-01-07 18:50:54 +00:00
parent cdaf0769f7
commit 8a1f904ed9

View File

@ -605,7 +605,7 @@ static int translucent_compare(Operation *op, SlapReply *rs) {
**
*/
rc = overlay_entry_get_ov(op, &op->o_req_ndn, NULL, ava->aa_desc, 0, &e, on);
if(e && rc == LDAP_SUCCESS) {
if(rc == LDAP_SUCCESS && e) {
overlay_entry_release_ov(op, e, 0, on);
return(SLAP_CB_CONTINUE);
}