]> git.ipfire.org Git - thirdparty/samba.git/commit
ldb: Fix search with scope ONE and small result sets
authorAndrew Bartlett <abartlet@samba.org>
Fri, 7 Feb 2020 03:56:13 +0000 (16:56 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 25 Feb 2020 10:38:34 +0000 (10:38 +0000)
commit3c7261c43da491b57f50e0e64d7050d85c6b973e
treea3e5ee1d1adc53cbf3daf42b2ccb5b95f2b8d2de
parentec34a7095705592279647c5046a000e0bf052d1a
ldb: Fix search with scope ONE and small result sets

This changes the LDB behaviour in the combination of a SCOPE_ONE search and
an index returning less than 10 results.

After b6b5b5fe355fee2a4096e9214831cb88c7a2a4c6 the list->strict flag
became set to false in all cases, rather than being left to the
value set by the caller.

This changes the ldb_kv_index_dn_one() code to force strict
mode on success instead.

Thanks to Marcus GranĂ©r, ICEYE Oy for reporting.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14270

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/ldb_key_value/ldb_kv_index.c