lynxis lazus has submitted this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/43508?usp=email )
Change subject: libvlr: correct utran warning when no auth is required ......................................................................
libvlr: correct utran warning when no auth is required
UTRAN requires a valid security context, but there is no need to have an authentication every time if there is a valid security context present.
Change-Id: Ia4c5b28b9a6aba387b43b7802ab55565a11a4348 --- M src/libvlr/vlr_access_req_fsm.c M src/libvlr/vlr_lu_fsm.c 2 files changed, 6 insertions(+), 6 deletions(-)
Approvals: pespin: Looks good to me, but someone else must approve laforge: Looks good to me, but someone else must approve lynxis lazus: Looks good to me, approved Jenkins Builder: Verified
diff --git a/src/libvlr/vlr_access_req_fsm.c b/src/libvlr/vlr_access_req_fsm.c index 53caae5..b1a75fd 100644 --- a/src/libvlr/vlr_access_req_fsm.c +++ b/src/libvlr/vlr_access_req_fsm.c @@ -716,9 +716,9 @@ (is_ciphering_to_be_attempted ? "+Ciph" : " (no Ciph)") : "");
- if (is_utran && !authentication_required) + if (is_utran && (!authentication_required && !is_ciphering_required)) LOGPFSML(fi, LOGL_ERROR, - "Authentication off on UTRAN network. Good luck.\n"); + "Authentication & Ciphering is off on UTRAN network. Good luck.\n");
switch (mi->type) { case GSM_MI_TYPE_IMSI: diff --git a/src/libvlr/vlr_lu_fsm.c b/src/libvlr/vlr_lu_fsm.c index e9435e3..f286450 100644 --- a/src/libvlr/vlr_lu_fsm.c +++ b/src/libvlr/vlr_lu_fsm.c @@ -1752,9 +1752,9 @@ (is_ciphering_to_be_attempted ? "+Ciph" : " (no Ciph)") : "");
- if (is_utran && !authentication_required) + if (is_utran && (!authentication_required && !is_ciphering_required)) LOGPFSML(fi, LOGL_ERROR, - "Authentication off on UTRAN network. Good luck.\n"); + "Authentication & Ciphering is off on UTRAN network. Good luck.\n");
osmo_fsm_inst_dispatch(fi, VLR_ULA_E_UPDATE_LA, NULL);
@@ -1810,9 +1810,9 @@ (is_ciphering_to_be_attempted ? "+Ciph" : " (no Ciph)") : "");
- if (is_utran && !authentication_required) + if (is_utran && (!authentication_required && !is_ciphering_required)) LOGPFSML(fi, LOGL_ERROR, - "Authentication off on UTRAN network. Good luck.\n"); + "Authentication & Ciphering is off on UTRAN network. Good luck.\n");
osmo_fsm_inst_dispatch(fi, VLR_ULA_E_UPDATE_LA, NULL);