]> git.sur5r.net Git - openldap/commitdiff
More for prev
authorHoward Chu <hyc@openldap.org>
Fri, 27 Feb 2009 06:57:09 +0000 (06:57 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 27 Feb 2009 06:57:09 +0000 (06:57 +0000)
servers/slapd/back-ldap/search.c

index a329a09451db9ed995a869a31c3eabc70eaa23e1..b3a68b31411e21f23fe4793354cf1e228e3138b6 100644 (file)
@@ -563,7 +563,7 @@ finish:;
                ldap_back_quarantine( op, rs );
        }
 
-       if ( freefilter ) {
+       if ( freefilter && filter.bv_val != op->ors_filterstr.bv_val ) {
                op->o_tmpfree( filter.bv_val, op->o_tmpmemctx );
        }