X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslapd%2Fback-bdb%2Ffilterindex.c;h=71e3ea417e1631b9668ff7986d054756d690154c;hb=54733bfc15fd7308c0780dca61f311d0f91f1157;hp=b17ae9f45466933bb78d4fb8c6d16aeec8934f6d;hpb=11c0753cd578955d351d7c5e30db461b43e3fde8;p=openldap diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index b17ae9f454..71e3ea417e 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2000-2012 The OpenLDAP Foundation. + * Copyright 2000-2014 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; }