]> granicus.if.org Git - apache/commitdiff
make sure we always set return_code when converting a password-check failure
authorJeff Trawick <trawick@apache.org>
Tue, 10 Sep 2002 14:40:46 +0000 (14:40 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 10 Sep 2002 14:40:46 +0000 (14:40 +0000)
to an HTTP response code

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96747 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth_basic.c

index f8089b7958163d037e0f5227d5b8e6c2dd8f172a..3f76418a360035eb2853e1edd6fb3ed2f0d7bdf7 100644 (file)
@@ -259,13 +259,12 @@ static int authenticate_basic_user(request_rec *r)
             return_code = HTTP_UNAUTHORIZED;
             break;
         case AUTH_GENERAL_ERROR:
+        default:
             /* We'll assume that the module has already said what its error 
              * was in the logs.
              */
             return_code = HTTP_INTERNAL_SERVER_ERROR;
             break;
-        default:
-            break;
         }
 
         /* If we're returning 403, tell them to try again. */