From 83ae34bc5936c1ec041476a83c75c1ea4a1d466c Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 10 Jan 2009 16:18:00 +1300 Subject: [PATCH] SMB_LM: replace assertion with clean error report --- helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c b/helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c index bf4464bb64..7c97d14395 100644 --- a/helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c +++ b/helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c @@ -316,8 +316,7 @@ manage_request() return; /* notreached */ case NTLM_CHALLENGE: - SEND - ("NA Got a challenge. We refuse to have our authority disputed"); + SEND("NA Got a challenge. We refuse to have our authority disputed"); return; /* notreached */ case NTLM_AUTHENTICATE: @@ -415,8 +414,10 @@ manage_request() (ntlm_authenticate *) decoded, plen); return; } + SEND("BH unknown internal error."); + return; } - assert(cred != NULL); + lc(cred); /* let's lowercase them for our convenience */ SEND2("AF %s", cred); return; -- 2.47.3