From c3dfa7e8287811b4f54d58b45f5093521886b17e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 3 Oct 2004 07:32:40 +0000 Subject: [PATCH] r2798: get rid of a unnecessary static --- source/auth/auth_util.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index 652c157c7ab..c8bad6128ca 100644 --- a/source/auth/auth_util.c +++ b/source/auth/auth_util.c @@ -440,7 +440,6 @@ NTSTATUS make_server_info(const TALLOC_CTX *mem_ctx, NTSTATUS make_server_info_guest(const TALLOC_CTX *mem_ctx, struct auth_serversupplied_info **server_info) { NTSTATUS nt_status; - static const char zeros[16]; nt_status = make_server_info(mem_ctx, server_info, ""); @@ -457,8 +456,11 @@ NTSTATUS make_server_info_guest(const TALLOC_CTX *mem_ctx, struct auth_serversup /* annoying, but the Guest really does have a session key, and it is all zeros! */ - (*server_info)->user_session_key = data_blob(zeros, sizeof(zeros)); - (*server_info)->lm_session_key = data_blob(zeros, sizeof(zeros)); + (*server_info)->user_session_key = data_blob_talloc(*server_info, NULL, 16); + (*server_info)->lm_session_key = data_blob_talloc(*server_info, NULL, 16); + + data_blob_clear(&(*server_info)->user_session_key); + data_blob_clear(&(*server_info)->lm_session_key); (*server_info)->account_name = ""; (*server_info)->domain = "";