From 7495a1a894a44913adc9602d1759a11eb00b631c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 23 Aug 2001 20:45:23 +0000 Subject: Fix to only send the status32 error for status32 clients, not to other nt_smb clients. As spotted by Thursby. (This used to be commit 22de76a920671614144babac9f589419532d8671) --- source3/smbd/reply.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index b4fb6693e6..fd4f5d62c0 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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)); } -- cgit