From: Howard Chu Date: Fri, 26 Nov 2004 10:10:29 +0000 (+0000) Subject: More Opheader fixes X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~217 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6dd9ec8a2934949f4d4756b0afb96bab015a86f;p=openldap More Opheader fixes --- diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index a39abcb29a..d848e7a6cc 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -202,7 +202,7 @@ int passwd_extop( rs->sr_err = LDAP_OTHER; } else { - op2.o_hdr = op->o_hdr; + op2 = *op; op2.o_tag = LDAP_REQ_MODIFY; op2.o_callback = &cb2; op2.orm_modlist = qpw->rs_mods; diff --git a/servers/slapd/str2filter.c b/servers/slapd/str2filter.c index 39fa95eaec..52e5d79169 100644 --- a/servers/slapd/str2filter.c +++ b/servers/slapd/str2filter.c @@ -80,7 +80,9 @@ Filter * str2filter( const char *str ) { Operation op = {0}; + Opheader ohdr = {0}; + op.o_hdr = &ohdr; op.o_tmpmemctx = NULL; op.o_tmpmfuncs = &ch_mfuncs;