summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-22 05:14:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:58 -0500
commit57196843320a1b833bcd669d0b23b429dfd34fb3 (patch)
treef06b48549a457d4093e4737a6915def9a5cf3379 /source4
parent42b5bdf75fe4974cb2e765f887c27d988d5aa28f (diff)
downloadsamba-57196843320a1b833bcd669d0b23b429dfd34fb3.tar.gz
samba-57196843320a1b833bcd669d0b23b429dfd34fb3.tar.bz2
samba-57196843320a1b833bcd669d0b23b429dfd34fb3.zip
r2497: fixed an uninitialised 4 bytes in old style session setup (found with valgrind)
(This used to be commit b2bb41721817256618124907a6922a00d50643dc)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/raw/clisession.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libcli/raw/clisession.c b/source4/libcli/raw/clisession.c
index dcf32c8485..2bd2d0e054 100644
--- a/source4/libcli/raw/clisession.c
+++ b/source4/libcli/raw/clisession.c
@@ -80,6 +80,7 @@ struct smbcli_request *smb_raw_session_setup_send(struct smbcli_session *session
SSVAL(req->out.vwv,VWV(4),parms->old.in.vc_num);
SIVAL(req->out.vwv,VWV(5),parms->old.in.sesskey);
SSVAL(req->out.vwv,VWV(7),parms->old.in.password.length);
+ SIVAL(req->out.vwv,VWV(8), 0); /* reserved */
smbcli_req_append_blob(req, &parms->old.in.password);
smbcli_req_append_string(req, parms->old.in.user, STR_TERMINATE);
smbcli_req_append_string(req, parms->old.in.domain, STR_TERMINATE|STR_UPPER);