s4:auth: Allocate user_info_dc->sids on correct talloc context
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 22 May 2023 21:42:46 +0000 (09:42 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 May 2023 00:50:31 +0000 (00:50 +0000)
commit46677077203673e90989db2b33ed0a1f4259d67b
tree8ece167f2434fb908f00b7586727e34bc294facd
parentf0ec5763e6d4841070758cdcb8fbbc19b37006dc
s4:auth: Allocate user_info_dc->sids on correct talloc context

‘user_info_dc->sids’ must live for at least as long as ‘user_info_dc’,
or a use-after-free may result.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/sam.c