]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldap/search.c
fix entry DN free
[openldap] / servers / slapd / back-ldap / search.c
index 2c6d296f5c7c1bbc14720bd4a309b3825a26b84f..3a16c4d8185125c55d23f5a84d140a7bb80a0091 100644 (file)
@@ -275,8 +275,8 @@ fail:;
                                rs->sr_operational_attrs = NULL;
                                rs->sr_flags = 0;
                                abort = send_search_entry( op, rs );
-                               if ( !BER_BVISNULL( &ent.e_name ) && ( ent.e_name.bv_val != bdn.bv_val ) )
-                               {
+                               if ( !BER_BVISNULL( &ent.e_name ) ) {
+                                       assert( ent.e_name.bv_val != bdn.bv_val );
                                        free( ent.e_name.bv_val );
                                        BER_BVZERO( &ent.e_name );
                                }