]> git.sur5r.net Git - openldap/commitdiff
make sure rs->sr_err is fine
authorPierangelo Masarati <ando@openldap.org>
Mon, 3 Apr 2006 00:33:34 +0000 (00:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 3 Apr 2006 00:33:34 +0000 (00:33 +0000)
servers/slapd/back-ldap/search.c

index 9b2d032796194465b13d9ce61274be1278493a87..cdb9c581ee8347882b4f72433de59311fe65750e 100644 (file)
@@ -303,6 +303,7 @@ retry:
                                rs->sr_attrs = op->ors_attrs;
                                rs->sr_operational_attrs = NULL;
                                rs->sr_flags = 0;
+                               rs->sr_err = LDAP_SUCCESS;
                                rc = rs->sr_err = send_search_entry( op, rs );
                                if ( !BER_BVISNULL( &ent.e_name ) ) {
                                        assert( ent.e_name.bv_val != bdn.bv_val );