idmap_hash: return ID_REQUIRE_TYPE only if there's a chance to get a mapping later
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Mar 2019 15:54:31 +0000 (16:54 +0100)
committerJule Anger <janger@samba.org>
Thu, 30 Mar 2023 15:10:10 +0000 (15:10 +0000)
commit13a593254afa9cfdfbcefb51da88b1a8309ef723
treee515ee22ced279d52d5a23ff724942f76bbf3e41
parente5c9a3597af05da7236e284422adca5294ff31c4
idmap_hash: return ID_REQUIRE_TYPE only if there's a chance to get a mapping later

If we are going to return ID_UNMAPPED later anyway, there's no need to
defer that decision by returning ID_REQUIRE_TYPE first.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 42dcb3db05530179a991fe58e7b96b52bbbcc607)
source3/winbindd/idmap_hash/idmap_hash.c