From e6dd9ec8a2934949f4d4756b0afb96bab015a86f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 26 Nov 2004 10:10:29 +0000 Subject: [PATCH] More Opheader fixes --- servers/slapd/passwd.c | 2 +- servers/slapd/str2filter.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5