Simpler to read for me
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
req->async_internal = false;
req->do_signing = false;
- if (opcode != SMB2_OP_SESSSETUP) {
- req->do_encryption = encryption_desired;
- } else {
+
+ if (opcode == SMB2_OP_SESSSETUP) {
req->do_encryption = false;
+ } else {
+ req->do_encryption = encryption_desired;
}
+
req->was_encrypted = false;
if (intf_v->iov_len == SMB2_TF_HDR_SIZE) {
const uint8_t *intf = SMBD_SMB2_IN_TF_PTR(req);