summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-08-23 20:45:23 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-08-23 20:45:23 +0000
commit7495a1a894a44913adc9602d1759a11eb00b631c (patch)
tree081c4381267265934a41f0369f5de642f0d8871e
parentd1f53e404496dff10df7dc5e5b58ed676982c955 (diff)
downloadsamba-7495a1a894a44913adc9602d1759a11eb00b631c.tar.gz
samba-7495a1a894a44913adc9602d1759a11eb00b631c.tar.bz2
samba-7495a1a894a44913adc9602d1759a11eb00b631c.zip
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)
-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));
}