s4-auth: Always talloc_zero() the struct auth_session_info
[sfrench/samba-autobuild/.git] / source4 / auth / session.c
index cf5514cbf7fa139e88d8e5721a778bb0c4e955e1..94751045696c5451a5b1dd4c80189474c59b6596 100644 (file)
@@ -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);