svn commit: samba r6021 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Thu Mar 24 01:03:00 GMT 2005


Author: jra
Date: 2005-03-24 01:02:55 +0000 (Thu, 24 Mar 2005)
New Revision: 6021

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6021

Log:
Never do NT status codes with protocols before NT1 as we don't get client caps.
Jeremy.

Modified:
   trunk/source/smbd/sesssetup.c


Changeset:
Modified: trunk/source/smbd/sesssetup.c
===================================================================
--- trunk/source/smbd/sesssetup.c	2005-03-24 01:02:52 UTC (rev 6020)
+++ trunk/source/smbd/sesssetup.c	2005-03-24 01:02:55 UTC (rev 6021)
@@ -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