From: Volker Lendecke Date: Sat, 31 Dec 2016 13:11:10 +0000 (+0000) Subject: auth3: Avoid some zeros footprint X-Git-Tag: samba-4.6.0rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3322cdd21a28968fb6442843cbf169dc1ae0737;p=thirdparty%2Fsamba.git auth3: Avoid some zeros footprint Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 58639a0aba1..ae6bfb3de41 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -811,7 +811,6 @@ static NTSTATUS get_guest_info3(TALLOC_CTX *mem_ctx, static NTSTATUS make_new_session_info_guest(struct auth_session_info **session_info, struct auth_serversupplied_info **server_info) { - static const char zeros[16] = {0}; const char *guest_account = lp_guest_account(); const char *domain = lp_netbios_name(); struct netr_SamInfo3 info3; @@ -861,7 +860,7 @@ static NTSTATUS make_new_session_info_guest(struct auth_session_info **session_i /* annoying, but the Guest really does have a session key, and it is all zeros! */ - (*session_info)->session_key = data_blob(zeros, sizeof(zeros)); + (*session_info)->session_key = data_blob_talloc_zero(NULL, 16); status = NT_STATUS_OK; done: