]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix to only send the status32 error for status32 clients, not to other
authorAndrew Bartlett <abartlet@samba.org>
Thu, 23 Aug 2001 20:45:23 +0000 (20:45 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 Aug 2001 20:45:23 +0000 (20:45 +0000)
nt_smb clients.  As spotted by Thursby.

source/smbd/reply.c

index b4fb6693e62598e0b1ac71a0fc15210ebcf2a672..fd4f5d62c08e62cba7acf3f7932bbe5707bdc3c0 100644 (file)
@@ -554,10 +554,8 @@ static int session_trust_account(connection_struct *conn, char *inbuf, char *out
 
 static int bad_password_error(char *inbuf,char *outbuf)
 {
-  enum remote_arch_types ra_type = get_remote_arch();
 
-  if(((ra_type == RA_WINNT) || (ra_type == RA_WIN2K)) &&
-      (global_client_caps & (CAP_NT_SMBS | CAP_STATUS32 ))) {
+  if (global_client_caps & CAP_STATUS32) {
     SSVAL(outbuf,smb_flg2,SVAL(outbuf, smb_flg2) | FLAGS2_32_BIT_ERROR_CODES);
     return(ERROR(0,NT_STATUS_LOGON_FAILURE));
   }