From d0e6e17b89429a535916e5f88afc9978d1ddd08a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 21 Mar 2007 22:33:09 +0000 Subject: [PATCH] cleanup after sending entry --- servers/slapd/back-ldap/search.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 467c5642f9..9f5fcf746c 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -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 );