]> git.sur5r.net Git - openldap/commitdiff
cleanup after sending entry
authorPierangelo Masarati <ando@openldap.org>
Wed, 21 Mar 2007 22:33:09 +0000 (22:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 21 Mar 2007 22:33:09 +0000 (22:33 +0000)
servers/slapd/back-ldap/search.c

index 467c5642f99252e174f31d0052be8678e8741b05..9f5fcf746ca550f6b4f122e676fda866a90b371b 100644 (file)
@@ -336,6 +336,7 @@ retry:
                                rs->sr_flags = 0;
                                rs->sr_err = LDAP_SUCCESS;
                                rc = rs->sr_err = send_search_entry( op, rs );
+                               rs->sr_entry = NULL;
                                if ( !BER_BVISNULL( &ent.e_name ) ) {
                                        assert( ent.e_name.bv_val != bdn.bv_val );
                                        op->o_tmpfree( ent.e_name.bv_val, op->o_tmpmemctx );