summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 15:40:54 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 01:12:37 +0200
commitdda1dd63d3c463a9a26d85acf4a9f7cc53396613 (patch)
treed21825611aace4f986f881c542f4209047f44e6a
parent6ee0d866c2d7dbdede8511fb906c10f6118fa87d (diff)
downloadsamba-dda1dd63d3c463a9a26d85acf4a9f7cc53396613.tar.gz
samba-dda1dd63d3c463a9a26d85acf4a9f7cc53396613.tar.bz2
samba-dda1dd63d3c463a9a26d85acf4a9f7cc53396613.zip
s3: Avoid an explicit ZERO_STRUCT
-rw-r--r--source3/smbd/sesssetup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index c2a2d16303..f9e49461cc 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -141,9 +141,7 @@ static NTSTATUS check_guest_password(struct auth_serversupplied_info **server_in
struct auth_usersupplied_info *user_info = NULL;
NTSTATUS nt_status;
- unsigned char chal[8];
-
- ZERO_STRUCT(chal);
+ static unsigned char chal[8] = { 0, };
DEBUG(3,("Got anonymous request\n"));