]> git.sur5r.net Git - openldap/commitdiff
fix test in case of bailout (ITS#4891)
authorPierangelo Masarati <ando@openldap.org>
Thu, 22 Mar 2007 22:30:53 +0000 (22:30 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 22 Mar 2007 22:30:53 +0000 (22:30 +0000)
servers/slapd/overlays/dynlist.c

index ff2d80b6e72a2ad6dd5f5bfe56c0a9611ebcaa66..b81a038d446fa1f1d6d4a4174512e5c87f3706df 100644 (file)
@@ -489,7 +489,8 @@ cleanup:;
                if ( !BER_BVISNULL( &o.o_req_ndn ) ) {
                        op->o_tmpfree( o.o_req_ndn.bv_val, op->o_tmpmemctx );
                }
-               assert( o.ors_filterstr.bv_val != lud->lud_filter );
+               assert( BER_BVISNULL( &o.ors_filterstr )
+                       || o.ors_filterstr.bv_val != lud->lud_filter );
                op->o_tmpfree( o.ors_filterstr.bv_val, op->o_tmpmemctx );
                ldap_free_urldesc( lud );
        }