From: Jorge Pereira Date: Thu, 28 Sep 2023 16:20:13 +0000 (-0300) Subject: Fix od_mschap_auth() call in rlm_mschap (#5192) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71da317f23f2ffdb06234155d6b9e57ecad84db9;p=thirdparty%2Ffreeradius-server.git Fix od_mschap_auth() call in rlm_mschap (#5192) When build against the OSX --- diff --git a/src/modules/rlm_mschap/rlm_mschap.c b/src/modules/rlm_mschap/rlm_mschap.c index 928fff12e9b..f0e8576c613 100644 --- a/src/modules/rlm_mschap/rlm_mschap.c +++ b/src/modules/rlm_mschap/rlm_mschap.c @@ -61,7 +61,7 @@ USES_APPLE_DEPRECATED_API /* OpenSSL API has been deprecated by Apple */ #endif #ifdef __APPLE__ -unlang_action_t od_mschap_auth(request_t *request, fr_pair_t *challenge, fr_pair_t *usernamepair, +unlang_action_t od_mschap_auth(rlm_rcode_t *p_result, request_t *request, fr_pair_t *challenge, fr_pair_t *usernamepair, mschap_auth_call_env_t *env_data); #endif @@ -1999,7 +1999,7 @@ static unlang_action_t CC_HINT(nonnull(1,2,3,4,5,8,9)) mschap_process_v2_respons */ if (!nt_password && inst->open_directory) { RDEBUG2("No Password.NT available. Trying OpenDirectory Authentication"); - rcode = od_mschap_auth(request, challenge, user_name, env_data); + od_mschap_auth(&rcode, request, challenge, user_name, env_data); if (rcode != RLM_MODULE_NOOP) RETURN_MODULE_RCODE(rcode); } #endif