From: Hallvard Furuseth Date: Sun, 29 Nov 2009 19:53:01 +0000 (+0000) Subject: ITS#6403: reset 'entry' output argument to overlay_entry_get_ov() X-Git-Tag: ACLCHECK_0~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=492b2cda2ba5260a46c4bfe02f64c0e28073c641;p=openldap ITS#6403: reset 'entry' output argument to overlay_entry_get_ov() --- diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index 4ec20a31a8..34b23b6362 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -585,7 +585,7 @@ static int translucent_compare(Operation *op, SlapReply *rs) { slap_overinst *on = (slap_overinst *) op->o_bd->bd_info; translucent_info *ov = on->on_bi.bi_private; AttributeAssertion *ava = op->orc_ava; - Entry *e; + Entry *e = NULL; BackendDB *db; int rc; @@ -852,6 +852,7 @@ static int translucent_search_cb(Operation *op, SlapReply *rs) { } else { /* Else we have remote, get local */ op->o_bd = tc->db; + le = NULL; rc = overlay_entry_get_ov(op, &rs->sr_entry->e_nname, NULL, NULL, 0, &le, on); if ( rc == LDAP_SUCCESS && le ) { re = entry_dup( rs->sr_entry );