summaryrefslogtreecommitdiff
path: root/auth/auth_util.c
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-06-10 19:18:07 +1200
committerJule Anger <janger@samba.org>2022-07-27 10:52:36 +0000
commit6a10e890a086b4dc05d460ef3e0c2cd9cd8f1f42 (patch)
treea5b45a95d2259bea084427a59513454067ea527f /auth/auth_util.c
parentfc03cf9f4547bf8164f61138d0211b866d36a956 (diff)
downloadsamba-6a10e890a086b4dc05d460ef3e0c2cd9cd8f1f42.tar.gz
CVE-2022-2031 auth: Add ticket type field to auth_user_info_dc and auth_session_info
This field may be used to convey whether we were provided with a TGT or a non-TGT. We ensure both structures are zeroed out to avoid incorrect results being produced by an uninitialised field. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15047 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15049 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'auth/auth_util.c')
-rw-r--r--auth/auth_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/auth_util.c b/auth/auth_util.c
index fe01babd107..ec9094d0f15 100644
--- a/auth/auth_util.c
+++ b/auth/auth_util.c
@@ -44,7 +44,7 @@ struct auth_session_info *copy_session_info(TALLOC_CTX *mem_ctx,
return NULL;
}
- dst = talloc(mem_ctx, struct auth_session_info);
+ dst = talloc_zero(mem_ctx, struct auth_session_info);
if (dst == NULL) {
DBG_ERR("talloc failed\n");
TALLOC_FREE(frame);