CVE-2021-20254 passdb: Simplify sids_to_unixids() master
authorVolker Lendecke <vl@samba.org>
Sat, 20 Feb 2021 14:50:12 +0000 (15:50 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 29 Apr 2021 09:06:29 +0000 (11:06 +0200)
commit151816305ea9689a2866275107b2d38376789f5f
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>
source3/passdb/lookup_sid.c