diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-05-31 06:09:42 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-05-31 06:09:42 +0000 |
commit | 51e22c931078e0b612dbc9e20dc143c3aebf7eb5 (patch) | |
tree | b134d8dfd258e73cd26440e5ab74bf95edd3c307 | |
parent | 48c6b86d4c580d62ef46132dc04ce2b1d14e21e8 (diff) | |
download | samba-51e22c931078e0b612dbc9e20dc143c3aebf7eb5.tar.gz |
comment out the code that tries to handle the NT bug where the 2nd
passlen is wrong. The fix is worse than the problem :-)
-rw-r--r-- | source/smbd/reply.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index b7b51775bb8..b5fa86a8d7d 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -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", |