Fix bad SMB2 opcode reading in server.
authorJeremy Allison <jra@samba.org>
Tue, 2 Apr 2013 03:11:26 +0000 (20:11 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 7 Apr 2013 19:37:54 +0000 (21:37 +0200)
commit1e64aee93e0b89997a3ef07634aa5dd22af93b55
tree25b8ab681845e1bd42a080cb129750caf72d1e78
parent789df00203a0b14b013ed09d10ca6de7928bed35
Fix bad SMB2 opcode reading in server.

SMB2 opcodes are 16-bit values. We should *never*
be reading them with IVAL(inhdr, SMB2_HDR_OPCODE),
it should always be SVAL(inhdr, SMB2_HDR_OPCODE).

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Autobuild-User(master): Richard Sharpe <sharpe@samba.org>
Autobuild-Date(master): Tue Apr  2 07:28:48 CEST 2013 on sn-devel-104

Fix bug #9760 - Incorrect parsing of SMB2 command codes.
source3/smbd/smb2_server.c