create_local_token: Add error checks
authorVolker Lendecke <vl@samba.org>
Wed, 14 Apr 2021 08:48:04 +0000 (10:48 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 19 Apr 2021 18:18:31 +0000 (18:18 +0000)
commit1a696c9ae28453bbf40f14c8f0175664a4ddf3b8
treeecdf3fb6b2da9109f86a05868506af7661b90191
parent42906e971d6f19b86e1d2440571df8eebd63dfbd
create_local_token: Add error checks

add_sid_to_array_unique() only fails for ENOMEM, and other parts of
the auth stack would probably crash under ENOMEM anyway. But this is
authorization-related code that should be as clean as possible.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/auth_util.c