ldap_pvt_thread_yield();
} else if (rc == LDAP_RES_SEARCH_ENTRY) {
- Entry ent;
+ Entry ent = {0};
struct berval bdn;
e = ldap_first_entry(lc->ld,res);
if ( ldap_build_entry(op, e, &ent, &bdn,
return LDAP_INVALID_DN_SYNTAX;
}
- ent->e_id = 0;
- ent->e_attrs = 0;
- ent->e_ocflags = 0;
- ent->e_private = 0;
attrp = &ent->e_attrs;
#ifdef ENABLE_REWRITE
{
struct metainfo *li = ( struct metainfo * )op->o_bd->be_private;
struct berval a, mapped;
- Entry ent;
+ Entry ent = {0};
BerElement ber = *e->lm_ber;
Attribute *attr, **attrp;
struct berval dummy = { 0, NULL };
&ent.e_nname, target );
}
- ent.e_id = 0;
- ent.e_attrs = 0;
- ent.e_private = 0;
attrp = &ent.e_attrs;
dc.ctx = "searchAttrDN";