From: Herwin Weststrate Date: Fri, 23 Oct 2015 13:12:37 +0000 (+0200) Subject: Fixed usage os Post-Auth-Type REJECT X-Git-Tag: release_3_0_11~226^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1341%2Fhead;p=thirdparty%2Ffreeradius-server.git Fixed usage os Post-Auth-Type REJECT The values had been shifted in the dictionaries in commit d9a9d594e666d70b9762c879c2c69d9a9bb38a64, but this piece of code used a hardcoded magic value instead of the autogenerated constant from include/attributes.h. Fix this by using the constant. --- diff --git a/src/main/auth.c b/src/main/auth.c index 10a0a3e781..4c8fb3c2e7 100644 --- a/src/main/auth.c +++ b/src/main/auth.c @@ -327,13 +327,12 @@ int rad_postauth(REQUEST *request) /* * We WERE going to have a nice reply, but * something went wrong. So we've got to run - * Post-Auth-Type Reject, which is defined in the - * dictionaries as having value "1". + * Post-Auth-Type Reject. */ if (request->reply->code != PW_CODE_ACCESS_REJECT) { RDEBUG("Using Post-Auth-Type Reject"); - process_post_auth(1, request); + process_post_auth(PW_POST_AUTH_TYPE_REJECT, request); } fr_state_discard(request, request->packet);