From: Hallvard Furuseth Date: Tue, 4 Jan 2011 15:12:45 +0000 (+0000) Subject: Set sr_type=REP_SEARCH before be_operational X-Git-Tag: MIGRATION_CVS2GIT~255 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eae5e37ebd53ab189155349cb8573eb4c421814e;p=openldap Set sr_type=REP_SEARCH before be_operational --- diff --git a/servers/slapd/back-sql/compare.c b/servers/slapd/back-sql/compare.c index d74bc18909..6c931cc35c 100644 --- a/servers/slapd/back-sql/compare.c +++ b/servers/slapd/back-sql/compare.c @@ -98,7 +98,7 @@ backsql_compare( Operation *op, SlapReply *rs ) } if ( is_at_operational( op->oq_compare.rs_ava->aa_desc->ad_type ) ) { - SlapReply nrs = { 0 }; + SlapReply nrs = { REP_SEARCH }; Attribute **ap; for ( ap = &e.e_attrs; *ap; ap = &(*ap)->a_next ) diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index c19501d758..c3ce80d195 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -1676,7 +1676,7 @@ fe_acl_attribute( a = attr_find( e->e_attrs, entry_at ); if ( a == NULL ) { - SlapReply rs = { 0 }; + SlapReply rs = { REP_SEARCH }; AttributeName anlist[ 2 ]; anlist[ 0 ].an_name = entry_at->ad_cname; @@ -1840,7 +1840,7 @@ backend_access( } else { a = attr_find( e->e_attrs, entry_at ); if ( a == NULL ) { - SlapReply rs = { 0 }; + SlapReply rs = { REP_SEARCH }; AttributeName anlist[ 2 ]; anlist[ 0 ].an_name = entry_at->ad_cname; diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 9760783c11..e86fc76a01 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -466,7 +466,7 @@ check_syncprov( AttributeName at[2]; Attribute a = {0}; Entry e = {0}; - SlapReply rs = {0}; + SlapReply rs = {REP_SEARCH}; int i, j, changed = 0; /* Look for contextCSN from syncprov overlay. If