summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index e3c7c9b856..64662a54e2 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -496,7 +496,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
fstring native_lanman;
BOOL guest=False;
static BOOL done_sesssetup = False;
- BOOL doencrypt = SMBENCRYPT();
+ BOOL doencrypt = lp_encrypted_passwords();
START_PROFILE(SMBsesssetupX);
*smb_apasswd = 0;
@@ -745,8 +745,8 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
guest = True;
} else {
- return ERROR_NT(nt_status);
- }
+ return ERROR_NT(NT_STATUS_LOGON_FAILURE);
+ }
}
if (!strequal(user,lp_guestaccount(-1)) &&