summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-03 07:32:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:35 -0500
commit9a415b723c0e015d7953f8341dd35f8dd7a6fc9c (patch)
treeb0cd61072afc42ab4e3edf26965e978d463b43bd
parentc4bf8c5b2ce09cbc54b7d013c345f4ef920e958e (diff)
downloadsamba-9a415b723c0e015d7953f8341dd35f8dd7a6fc9c.tar.gz
samba-9a415b723c0e015d7953f8341dd35f8dd7a6fc9c.tar.bz2
samba-9a415b723c0e015d7953f8341dd35f8dd7a6fc9c.zip
r2798: get rid of a unnecessary static
(This used to be commit c3dfa7e8287811b4f54d58b45f5093521886b17e)
-rw-r--r--source4/auth/auth_util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c
index 652c157c7a..c8bad6128c 100644
--- a/source4/auth/auth_util.c
+++ b/source4/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 = "";