summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-11-28 14:50:03 +0100
committerVolker Lendecke <vl@samba.org>2011-11-28 14:52:32 +0100
commit7491bd78d6c17c56e6b6fa87db94063852fa33e1 (patch)
tree0fc8a4eaea52000ee7b8a6d042e4af001e608d33
parentf094cc3ade2466d4c51b4d8ceaff67be281fda87 (diff)
downloadsamba-7491bd78d6c17c56e6b6fa87db94063852fa33e1.tar.gz
samba-7491bd78d6c17c56e6b6fa87db94063852fa33e1.tar.bz2
samba-7491bd78d6c17c56e6b6fa87db94063852fa33e1.zip
Fix Coverity ID 2638: OVERRUN_STATIC
-rw-r--r--libcli/smb/smbXcli_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index b35db9efcd..16f594b9cb 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -1062,7 +1062,7 @@ struct tevent_req *smb1cli_req_create(TALLOC_CTX *mem_ctx,
SSVAL(state->smb1.hdr, HDR_PID, pid);
SSVAL(state->smb1.hdr, HDR_UID, uid);
SSVAL(state->smb1.hdr, HDR_MID, 0); /* this comes later */
- SSVAL(state->smb1.hdr, HDR_WCT, wct);
+ SCVAL(state->smb1.hdr, HDR_WCT, wct);
state->smb1.vwv = vwv;