From: Daniele Rondina Date: Mon, 6 Apr 2020 10:10:07 +0000 (+0200) Subject: auth: respect log_reject attribute with proxy X-Git-Tag: release_3_0_22~626 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69eb74fb1f66e111ec0c8d458eae3752cf3c5260;p=thirdparty%2Ffreeradius-server.git auth: respect log_reject attribute with proxy Avoid logging message ""Login incorrect (Home Server says so)" if `auth_reject = no` is configured. Signed-off-by: Daniele Rondina --- diff --git a/src/main/auth.c b/src/main/auth.c index a10097637b0..7facbcd6707 100644 --- a/src/main/auth.c +++ b/src/main/auth.c @@ -481,9 +481,9 @@ int rad_authenticate(REQUEST *request) * done by the server, by rejecting them here. */ case PW_CODE_ACCESS_REJECT: + request->reply->code = PW_CODE_ACCESS_REJECT; rad_authlog("Login incorrect (Home Server says so)", request, 0); - request->reply->code = PW_CODE_ACCESS_REJECT; return RLM_MODULE_REJECT; default: