]> git.sur5r.net Git - openldap/commitdiff
ITS#8036 more for prev commit
authorHoward Chu <hyc@openldap.org>
Tue, 27 Jan 2015 23:38:32 +0000 (23:38 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 28 Jan 2015 16:44:43 +0000 (10:44 -0600)
servers/slapd/back-mdb/search.c

index 352ca69d53d1ddd6e14406f287b4513cd52a87c5..39d2b28b7cdcd74a2ba60fd587ee8c15ab86e927 100644 (file)
@@ -371,6 +371,8 @@ mdb_waitfixup( Operation *op, ww_ctx *ww, MDB_cursor *mci, MDB_cursor *mcd, ID2
                int i;
                key.mv_size = sizeof(ID);
                for ( i=1; i<scopes[0].mid; i++ ) {
+                       if ( !scopes[i].mval.mv_size )
+                               continue;
                        key.mv_data = &scopes[i].mid;
                        mdb_cursor_get( mcd, &key, &scopes[i].mval, MDB_SET );
                }