From: Jeff Trawick Date: Tue, 10 Sep 2002 14:40:46 +0000 (+0000) Subject: make sure we always set return_code when converting a password-check failure X-Git-Tag: 2.0.42~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a0347b2e4edb1c1528f43ed66bebef9e505c5aa;p=apache 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 --- 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. */