]> git.ipfire.org Git - thirdparty/samba.git/commit
source3/passdb: Fix NULL dereference in _lsa_LookupSids()
authorAnoop C S <anoopcs@samba.org>
Tue, 19 May 2026 10:07:28 +0000 (15:37 +0530)
committerMartin Schwenke <martins@samba.org>
Thu, 21 May 2026 02:21:29 +0000 (02:21 +0000)
commit2df088dcf022172584ec5dff2c9195ec9b4c27e0
tree192ff9d7f0a9c940d2ce2b613e77037ea46346cc
parentb3a713949320071c51df36b7196f4bc6e474ffad
source3/passdb: Fix NULL dereference in _lsa_LookupSids()

When lookup_sids() returns NT_STATUS_NONE_MAPPED but exits early without
populating the names array, the subsequent dereference of names causes a
NULL pointer dereference.

Return an appropriate error status that allows existing error handling
to catch this case before the NULL dereference occurs.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/passdb/lookup_sid.c