summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-30 17:29:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:40 -0500
commitd2fff52b913e9ac192163fb615a59aaa3a247afb (patch)
treecab0ba84b1ee837ed6f9ae6eeeb850f74ad974e7
parent3c78fdd49d8acc690a92a757b07fd3c542dd675f (diff)
downloadsamba-d2fff52b913e9ac192163fb615a59aaa3a247afb.tar.gz
samba-d2fff52b913e9ac192163fb615a59aaa3a247afb.tar.xz
samba-d2fff52b913e9ac192163fb615a59aaa3a247afb.zip
r11975: Fix valgrind error -- bug 3291
(This used to be commit 9a6ce67fbf89ea7fc9eed72776dff4712ba67e2b)
-rw-r--r--source3/libsmb/cliconnect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index b352d3572a7..ac7d1b1650c 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -163,6 +163,7 @@ static BOOL cli_session_setup_guest(struct cli_state *cli)
char *p;
uint32 capabilities = cli_session_setup_capabilities(cli);
+ memset(cli->outbuf, '\0', smb_size);
set_message(cli->outbuf,13,0,True);
SCVAL(cli->outbuf,smb_com,SMBsesssetupX);
cli_setup_packet(cli);