summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-05 15:57:42 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-05 23:46:04 +0200
commitf261266c9d66d7143a867f4719d1549f58915036 (patch)
tree97f05a3c2eb70e81410730f0c001974a5843c62a /source4/auth
parent1c34842db43db04abf8aa3449c56e2049fee3eb0 (diff)
downloadsamba-f261266c9d66d7143a867f4719d1549f58915036.tar.gz
samba-f261266c9d66d7143a867f4719d1549f58915036.tar.bz2
samba-f261266c9d66d7143a867f4719d1549f58915036.zip
s4-auth: Always talloc_zero() the struct auth_session_info
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/session.c b/source4/auth/session.c
index cf5514cbf7..9475104569 100644
--- a/source4/auth/session.c
+++ b/source4/auth/session.c
@@ -64,7 +64,7 @@ _PUBLIC_ NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx,
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
NT_STATUS_HAVE_NO_MEMORY(tmp_ctx);
- session_info = talloc(tmp_ctx, struct auth_session_info);
+ session_info = talloc_zero(tmp_ctx, struct auth_session_info);
NT_STATUS_HAVE_NO_MEMORY_AND_FREE(session_info, tmp_ctx);
session_info->info = talloc_reference(session_info, user_info_dc->info);