From: Pierangelo Masarati Date: Wed, 1 Jun 2005 19:36:58 +0000 (+0000) Subject: fix previous commit X-Git-Tag: OPENLDAP_AC_BP~582 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d58c2f39f9516f655258c48f00ed8f67b746a32;p=openldap fix previous commit --- diff --git a/servers/slapd/back-sql/search.c b/servers/slapd/back-sql/search.c index c78920f926..98f0041501 100644 --- a/servers/slapd/back-sql/search.c +++ b/servers/slapd/back-sql/search.c @@ -2399,7 +2399,7 @@ backsql_entry_clean( ctx = ldap_pvt_thread_pool_context(); - if ( ctx == NULL || ctx == op->o_tmpmemctx ) { + if ( ctx == NULL || ctx != op->o_tmpmemctx ) { if ( !BER_BVISNULL( &e->e_name ) ) { op->o_tmpfree( e->e_name.bv_val, op->o_tmpmemctx ); BER_BVZERO( &e->e_name );