]> git.sur5r.net Git - openldap/commitdiff
reset flags (need to check consistence across slapd)
authorPierangelo Masarati <ando@openldap.org>
Wed, 17 Mar 2004 09:59:04 +0000 (09:59 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 17 Mar 2004 09:59:04 +0000 (09:59 +0000)
servers/slapd/back-bdb/search.c

index c4b1a9185e7f5c024775a64a8819db08736e4097..1260cf54ab01a5f4fb861b30f2b96918a1e351cf 100644 (file)
@@ -1183,6 +1183,7 @@ id2entry_retry:
                                                        if ( rs->sr_err != LDAP_SUCCESS ) goto done;
                                                        rs->sr_attrs = attrs;
                                                        rs->sr_ctrls = ctrls;
+                                                       rs->sr_flags = 0;
                                                        result = send_search_entry( sop, rs );
                                                        if ( cookie.bv_val ) ch_free( cookie.bv_val );  
                                                        sl_free( ctrls[num_ctrls-1]->ldctl_value.bv_val,
@@ -1219,6 +1220,7 @@ id2entry_retry:
                                                        if ( rs->sr_err != LDAP_SUCCESS ) goto done;
                                                        rs->sr_ctrls = ctrls;
                                                        rs->sr_attrs = sop->oq_search.rs_attrs;
+                                                       rs->sr_flags = 0;
                                                        result = send_search_entry( sop, rs );
                                                        sl_free( ctrls[num_ctrls-1]->ldctl_value.bv_val,
                                                                 sop->o_tmpmemctx );
@@ -1258,6 +1260,7 @@ id2entry_retry:
                                        } else {
                                                rs->sr_attrs = sop->oq_search.rs_attrs;
                                                rs->sr_ctrls = NULL;
+                                               rs->sr_flags = 0;
                                                result = send_search_entry( sop, rs );
                                        }
                                }