From: Stefan Metzmacher Date: Wed, 13 Aug 2008 07:44:06 +0000 (+0200) Subject: libcli/smb2: we don't need check the same thing twice... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1380fb954a7d9d4b543c4650a060fef9f357af7b;p=thirdparty%2Fsamba.git libcli/smb2: we don't need check the same thing twice... metze --- diff --git a/source/libcli/smb2/signing.c b/source/libcli/smb2/signing.c index 0d655d1a866..de9e1e9d29f 100644 --- a/source/libcli/smb2/signing.c +++ b/source/libcli/smb2/signing.c @@ -94,12 +94,6 @@ NTSTATUS smb2_check_signature(struct smb2_request_buffer *buf, DATA_BLOB session return NT_STATUS_OK; } - if (session_key.length == 0) { - DEBUG(2,("Wrong session key length %u for SMB2 signing\n", - (unsigned)session_key.length)); - return NT_STATUS_ACCESS_DENIED; - } - memcpy(sig, buf->hdr+SMB2_HDR_SIGNATURE, 16); memset(buf->hdr + SMB2_HDR_SIGNATURE, 0, 16);