Fix bug #9724 - is_encrypted_packet() function incorrectly used inside server.
commit1d15fc75a33b7368049876368f4b70c188bbd55e
authorJeremy Allison <jra@samba.org>
Fri, 15 Mar 2013 22:05:31 +0000 (15 15:05 -0700)
committerStefan Metzmacher <metze@samba.org>
Sat, 16 Mar 2013 11:44:44 +0000 (16 12:44 +0100)
treeb90f43a3a71d61dfaaef1d2d15d11b4087ca46bd
parentfd8b258fa20496c3e6360248503f59704d206742
Fix bug #9724 - is_encrypted_packet() function incorrectly used inside server.

The is_encrypted_packet() function should only be used on the raw received data
to determine if a packet came in encrypted. Once we're inside the SMB1
processing code in smbd/reply.c we should be looking at the
smb1request->encrypted field to determine if a packet was really encrypted or
not.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Mar 16 12:44:44 CET 2013 on sn-devel-104
source3/smbd/reply.c