From 278322ee5f8fd2f28455a7d1e71dc7ffa4bdf23f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Nov 2011 00:30:34 -0800 Subject: [PATCH] ITS#7025 fix syncprov crash init fop.o_extra, copying from s_op is not guaranteed. --- servers/slapd/overlays/syncprov.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5