Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 100c1ddc authored by Yehuda Sadeh Weinraub's avatar Yehuda Sadeh Weinraub Committed by Steve French
Browse files

[CIFS] Missing flag on negprot needed for some servers to force packet signing



A related signature issue that I came across.
There's a bug in win2k that when NT error codes are not negotiated, the
server doesn't response that signatures are mandatory. Since there's
(currently) no way turn on signatures in such case, I had to force NT
error codes, so that this bug will not occur

Signed-off-by: default avatarYehuda Sadeh Weinraub <Yehuda.Sadeh@expand.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 221601c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -433,7 +433,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
	cFYI(1,("secFlags 0x%x",secFlags));
	cFYI(1,("secFlags 0x%x",secFlags));


	pSMB->hdr.Mid = GetNextMid(server);
	pSMB->hdr.Mid = GetNextMid(server);
	pSMB->hdr.Flags2 |= SMBFLG2_UNICODE;
	pSMB->hdr.Flags2 |= (SMBFLG2_UNICODE | SMBFLG2_ERR_STATUS);
	if ((secFlags & CIFSSEC_MUST_KRB5) == CIFSSEC_MUST_KRB5)
	if ((secFlags & CIFSSEC_MUST_KRB5) == CIFSSEC_MUST_KRB5)
		pSMB->hdr.Flags2 |= SMBFLG2_EXT_SEC;
		pSMB->hdr.Flags2 |= SMBFLG2_EXT_SEC;