summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 1 insertions, 3 deletions
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));
}