svn commit: samba r2798 - in branches/SAMBA_4_0/source/auth: .
tridge at samba.org
tridge at samba.org
Sun Oct 3 07:32:40 GMT 2004
Author: tridge
Date: 2004-10-03 07:32:40 +0000 (Sun, 03 Oct 2004)
New Revision: 2798
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/auth&rev=2798&nolog=1
Log:
get rid of a unnecessary static
Modified:
branches/SAMBA_4_0/source/auth/auth_util.c
Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_util.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_util.c 2004-10-03 07:32:08 UTC (rev 2797)
+++ branches/SAMBA_4_0/source/auth/auth_util.c 2004-10-03 07:32:40 UTC (rev 2798)
@@ -440,7 +440,6 @@
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,9 +456,12 @@
/* 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 = "";
(*server_info)->full_name = "Anonymous";
More information about the samba-cvs
mailing list