comment out the code that tries to handle the NT bug where the 2nd
authorAndrew Tridgell <tridge@samba.org>
Fri, 31 May 1996 06:09:42 +0000 (06:09 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 31 May 1996 06:09:42 +0000 (06:09 +0000)
passlen is wrong. The fix is worse than the problem :-)
(This used to be commit 51e22c931078e0b612dbc9e20dc143c3aebf7eb5)

source3/smbd/reply.c

index b7b51775bb8bbcd1141b9a754c16e4b208934291..b5fa86a8d7d2cb9d3d26c2cfb3cfab98c32268c1 100644 (file)
@@ -334,11 +334,13 @@ int reply_sesssetup_and_X(char *inbuf,char *outbuf,int length,int bufsize)
        StrnCpy(smb_apasswd,p + passlen1,smb_apasslen);
       }
     }
+#if NT_WORKAROUND
     if (passlen2 == 1) {
       /* apparently NT sometimes sets passlen2 to 1 when it means 0. This
         tries to work around that problem */
       passlen2 = 0;
     }
+#endif
     p += passlen1 + passlen2;
     strcpy(user,p); p = skip_string(p,1);
     DEBUG(3,("Domain=[%s]  NativeOS=[%s] NativeLanMan=[%s]\n",