mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
Clean up entry initialization
This commit is contained in:
parent
39eb55b5f4
commit
b011c51390
2 changed files with 2 additions and 9 deletions
|
|
@ -216,7 +216,7 @@ fail:;
|
||||||
ldap_pvt_thread_yield();
|
ldap_pvt_thread_yield();
|
||||||
|
|
||||||
} else if (rc == LDAP_RES_SEARCH_ENTRY) {
|
} else if (rc == LDAP_RES_SEARCH_ENTRY) {
|
||||||
Entry ent;
|
Entry ent = {0};
|
||||||
struct berval bdn;
|
struct berval bdn;
|
||||||
e = ldap_first_entry(lc->ld,res);
|
e = ldap_first_entry(lc->ld,res);
|
||||||
if ( ldap_build_entry(op, e, &ent, &bdn,
|
if ( ldap_build_entry(op, e, &ent, &bdn,
|
||||||
|
|
@ -413,10 +413,6 @@ ldap_build_entry(
|
||||||
return LDAP_INVALID_DN_SYNTAX;
|
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;
|
attrp = &ent->e_attrs;
|
||||||
|
|
||||||
#ifdef ENABLE_REWRITE
|
#ifdef ENABLE_REWRITE
|
||||||
|
|
|
||||||
|
|
@ -570,7 +570,7 @@ meta_send_entry(
|
||||||
{
|
{
|
||||||
struct metainfo *li = ( struct metainfo * )op->o_bd->be_private;
|
struct metainfo *li = ( struct metainfo * )op->o_bd->be_private;
|
||||||
struct berval a, mapped;
|
struct berval a, mapped;
|
||||||
Entry ent;
|
Entry ent = {0};
|
||||||
BerElement ber = *e->lm_ber;
|
BerElement ber = *e->lm_ber;
|
||||||
Attribute *attr, **attrp;
|
Attribute *attr, **attrp;
|
||||||
struct berval dummy = { 0, NULL };
|
struct berval dummy = { 0, NULL };
|
||||||
|
|
@ -616,9 +616,6 @@ meta_send_entry(
|
||||||
&ent.e_nname, target );
|
&ent.e_nname, target );
|
||||||
}
|
}
|
||||||
|
|
||||||
ent.e_id = 0;
|
|
||||||
ent.e_attrs = 0;
|
|
||||||
ent.e_private = 0;
|
|
||||||
attrp = &ent.e_attrs;
|
attrp = &ent.e_attrs;
|
||||||
|
|
||||||
dc.ctx = "searchAttrDN";
|
dc.ctx = "searchAttrDN";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue