From: Howard Chu Date: Fri, 18 Nov 2011 08:30:34 +0000 (-0800) Subject: ITS#7025 fix syncprov crash X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=278322ee5f8fd2f28455a7d1e71dc7ffa4bdf23f;p=openldap ITS#7025 fix syncprov crash init fop.o_extra, copying from s_op is not guaranteed. --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index d49a3113f1..2104c49476 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -439,6 +439,7 @@ syncprov_findbase( Operation *op, fbase_cookie *fc ) fop.o_sync_mode = 0; /* turn off sync mode */ fop.o_managedsait = SLAP_CONTROL_CRITICAL; fop.o_callback = &cb; + LDAP_SLIST_INIT( &fop.o_extra ); fop.o_tag = LDAP_REQ_SEARCH; fop.ors_scope = LDAP_SCOPE_BASE; fop.ors_limit = NULL;