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. Patches for 3.6.next and 4.0.next to follow. Jeremy.
Fix depends on patchset for #9706.
Created attachment 8652 [details] git-am fix for master and 4.0.x NB. Depends on the patch for bug #9706 being applied first. Jeremy.
Created attachment 8653 [details] git-am fix for 3.6.next. Doesn't depend on any other patches.
Comment on attachment 8652 [details] git-am fix for master and 4.0.x Looks good, pushed to autobuild
Metze, please add a + on the patch review field so I can re-assign this to Karolin for inclusion in 4.0.next. Thanks, Jeremy.
Comment on attachment 8652 [details] git-am fix for master and 4.0.x LGTM
Comment on attachment 8653 [details] git-am fix for 3.6.next. LGTM
Re-assigning to Karolin for inclusion in 4.0.next and 3.6.next. Thanks ! Jeremy.
Comment on attachment 8652 [details] git-am fix for master and 4.0.x Karolin, please add cherry-pick information, 1d15fc75a33b7368049876368f4b70c188bbd55e is the master commit
Pushed to v3-6-test and autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks!