diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-05-20 19:32:55 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-05-20 20:53:31 +0200 |
commit | c4b41c56498bea40baf152e2ee23f9850710891d (patch) | |
tree | d795b0c30392c797dfcc4608039a3395cd83dab7 /source3/smbd | |
parent | d649a46078e6af5bacafd74107aedea5d4f31312 (diff) | |
download | samba-c4b41c56498bea40baf152e2ee23f9850710891d.tar.gz samba-c4b41c56498bea40baf152e2ee23f9850710891d.tar.bz2 samba-c4b41c56498bea40baf152e2ee23f9850710891d.zip |
s3:smbd: fix initialized memory in SMB2 responses
MESSAGE_ID and SESSION_ID are both 64bit.
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/smb2_server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 9be6a73e13..095b1f0cd7 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -241,14 +241,14 @@ static NTSTATUS smbd_smb2_request_setup_out(struct smbd_smb2_request *req) SSVAL(outhdr, SMB2_HDR_CREDIT, 0); SIVAL(outhdr, SMB2_HDR_FLAGS, SMB2_HDR_FLAG_REDIRECT); SIVAL(outhdr, SMB2_HDR_NEXT_COMMAND, next_command_ofs); - SIVAL(outhdr, SMB2_HDR_MESSAGE_ID, - IVAL(inhdr, SMB2_HDR_MESSAGE_ID)); + SBVAL(outhdr, SMB2_HDR_MESSAGE_ID, + BVAL(inhdr, SMB2_HDR_MESSAGE_ID)); SIVAL(outhdr, SMB2_HDR_PID, IVAL(inhdr, SMB2_HDR_PID)); SIVAL(outhdr, SMB2_HDR_TID, IVAL(inhdr, SMB2_HDR_TID)); - SIVAL(outhdr, SMB2_HDR_SESSION_ID, - IVAL(inhdr, SMB2_HDR_SESSION_ID)); + SBVAL(outhdr, SMB2_HDR_SESSION_ID, + BVAL(inhdr, SMB2_HDR_SESSION_ID)); memset(outhdr + SMB2_HDR_SIGNATURE, 0, 16); /* setup error body header */ |