]> git.sur5r.net Git - openldap/commitdiff
fix previous commit
authorPierangelo Masarati <ando@openldap.org>
Wed, 1 Jun 2005 19:36:58 +0000 (19:36 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 1 Jun 2005 19:36:58 +0000 (19:36 +0000)
servers/slapd/back-sql/search.c

index c78920f926599eee469eecbce0e1596743c44ad1..98f0041501becd6d7d1637172eb5cfddfbf8101b 100644 (file)
@@ -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 );