CVE-2021-20254 passdb: Simplify sids_to_unixids()
commit75ad84167f5d2379557ec078d17c9a1c244402fc
authorVolker Lendecke <vl@samba.org>
Sat, 20 Feb 2021 14:50:12 +0000 (20 15:50 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 29 Apr 2021 09:55:51 +0000 (29 09:55 +0000)
tree3cd790cb0e10790ad1054dae9176a127a5af54ca
parent757c49f6dc52afd6ee39c0b282e9a787b6df7a12
CVE-2021-20254 passdb: Simplify sids_to_unixids()

Best reviewed with "git show -b", there's a "continue" statement that
changes subsequent indentation.

Decouple lookup status of ids from ID_TYPE_NOT_SPECIFIED

Add comments to explain the use of the three lookup
loops.

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

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Thu Apr 29 09:55:51 UTC 2021 on sn-devel-184
source3/passdb/lookup_sid.c