mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
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:
parent
cdaf0769f7
commit
8a1f904ed9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user