From 2a0347b2e4edb1c1528f43ed66bebef9e505c5aa Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Tue, 10 Sep 2002 14:40:46 +0000 Subject: [PATCH] make sure we always set return_code when converting a password-check failure 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/aaa/mod_auth_basic.c b/modules/aaa/mod_auth_basic.c index f8089b7958..3f76418a36 100644 --- a/modules/aaa/mod_auth_basic.c +++ b/modules/aaa/mod_auth_basic.c @@ -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. */ -- 2.40.0