fixed mandatory signing
[kai/samba.git] / source4 / smb_server / smb2 / receive.c
index 3def8fe56380d1fcef545a0a4b0b8fb77906f1fb..2f4e9df2b6ab9cb4c8692290db1348841709e324 100644 (file)
@@ -321,6 +321,10 @@ static NTSTATUS smb2srv_reply(struct smb2srv_request *req)
                        smb2srv_send_error(req, status);
                        return NT_STATUS_OK;                    
                }
+       } else if (req->smb_conn->doing_signing && req->session != NULL) {
+               /* we require signing and this request was not signed */
+               smb2srv_send_error(req, NT_STATUS_ACCESS_DENIED);
+               return NT_STATUS_OK;                                    
        }
 
        /* TODO: check the seqnum */