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
This commit is contained in:
Vadim Yanitskiy 2024-02-14 17:50:10 +07:00 committed by fixeria
parent 3b82d2c226
commit d8b75fbfc8
1 changed files with 2 additions and 1 deletions

View File

@ -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);