]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SMB_LM: replace assertion with clean error report
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 16 Jan 2009 10:07:19 +0000 (23:07 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 16 Jan 2009 10:07:19 +0000 (23:07 +1300)
helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c

index bf4464bb649c7a7faf22f204b55add7946982699..7c97d14395b7fc1de13764c951cf10dddff9460d 100644 (file)
@@ -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;