From d8b75fbfc8c247348b23f700ad698e93dbdefa8c Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 14 Feb 2024 17:50:10 +0700 Subject: [PATCH] libvlr: fix wrong cause value passed to auth_fsm_term() This was found thanks to clang (-Wenum-conversion): warning: implicit conversion from enumeration type 'enum gsm48_gmm_cause' to different enumeration type 'enum gsm48_reject_value' [-Wenum-conversion] Change-Id: I0b820bb2a8e561682a8158fc51bd9565f5912d56 --- src/libvlr/vlr_auth_fsm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libvlr/vlr_auth_fsm.c b/src/libvlr/vlr_auth_fsm.c index 14345b245..5207464d8 100644 --- a/src/libvlr/vlr_auth_fsm.c +++ b/src/libvlr/vlr_auth_fsm.c @@ -391,7 +391,8 @@ static void auth_fsm_wait_ai(struct osmo_fsm_inst *fi, uint32_t event, case VLR_AUTH_E_HLR_SAI_NACK: /* HLR did not return Auth Info, hence cannot authenticate. (The caller may still decide to permit * attaching without authentication) */ - auth_fsm_term(fi, AUTH_FSM_NO_AUTH_INFO, gsup->cause); + vlr_gmm_cause_to_mm_cause(gsup->cause, &gsm48_rej); + auth_fsm_term(fi, AUTH_FSM_NO_AUTH_INFO, gsm48_rej); break; case VLR_AUTH_E_HLR_SAI_ABORT: vlr_gmm_cause_to_mm_cause(gsup->cause, &gsm48_rej);