svn commit: samba r6020 - in branches/SAMBA_3_0/source/smbd: .
jra at samba.org
jra at samba.org
Thu Mar 24 01:02:57 GMT 2005
Author: jra
Date: 2005-03-24 01:02:52 +0000 (Thu, 24 Mar 2005)
New Revision: 6020
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6020
Log:
Never do NT status codes with protocols before NT1 as we don't get client caps.
Jeremy.
Modified:
branches/SAMBA_3_0/source/smbd/sesssetup.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/sesssetup.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/sesssetup.c 2005-03-24 00:58:52 UTC (rev 6019)
+++ branches/SAMBA_3_0/source/smbd/sesssetup.c 2005-03-24 01:02:52 UTC (rev 6020)
@@ -677,6 +677,10 @@
if (Protocol < PROTOCOL_NT1) {
uint16 passlen1 = SVAL(inbuf,smb_vwv7);
+
+ /* Never do NT status codes with protocols before NT1 as we don't get client caps. */
+ remove_from_common_flags2(FLAGS2_32_BIT_ERROR_CODES);
+
if ((passlen1 > MAX_PASS_LEN) || (passlen1 > smb_bufrem(inbuf, smb_buf(inbuf)))) {
return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
}
More information about the samba-cvs
mailing list