diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2023-05-10 14:54:21 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-05-18 01:03:37 +0000 |
commit | 633ebe1b3efee4c61e1856cad5be5723010f9bd1 (patch) | |
tree | 01bdac5545ea0118ac8bc09c0f74fbdc1469de5e /source4/kdc/authn_policy.c | |
parent | 8cc0b76509b51bb57c2c527ea504812f8de06144 (diff) | |
download | samba-633ebe1b3efee4c61e1856cad5be5723010f9bd1.tar.gz |
s4:kdc: Make a proper shallow copy of the auth_user_info_dc structure
Just copying the structure fields is prone to lead to use-after-frees if
we access them after the original structure and its fields are freed.
Instead, call authsam_shallow_copy_user_info_dc() to make the copy. This
properly references the fields in the original structure so that they
will not be freed until we are sure we have finished with them.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/kdc/authn_policy.c')
0 files changed, 0 insertions, 0 deletions