]> git.sur5r.net Git - openldap/commitdiff
ITS#7025 fix syncprov crash
authorHoward Chu <hyc@openldap.org>
Fri, 18 Nov 2011 08:30:34 +0000 (00:30 -0800)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 22 Nov 2011 00:23:07 +0000 (16:23 -0800)
init fop.o_extra, copying from s_op is not guaranteed.

servers/slapd/overlays/syncprov.c

index d49a3113f1bdbe96d78899e124e1d583bbf33568..2104c4947634a8bb30eb01b94e799b06cf3283c3 100644 (file)
@@ -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;