]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/filterindex.c
Happy New Year
[openldap] / servers / slapd / back-bdb / filterindex.c
index f595ebef6e833c8845f7539ca8511687b8391cb0..11c2251b5a21a97738fa61e96689268c7ca190e1 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2013 The OpenLDAP Foundation.
+ * Copyright 2000-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -728,6 +728,10 @@ equality_candidates(
                if ( ei ) {
                        bdb_cache_entryinfo_unlock( ei );
                }
+               if ( rc == DB_NOTFOUND ) {
+                       BDB_IDL_ZERO( ids );
+                       rc = 0;
+               }
                return rc;
        }