From: Arran Cudbard-Bell Date: Sun, 10 Dec 2017 12:22:07 +0000 (+0000) Subject: Better output when an IMSI starting with zero isn't in the format we expected X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8620b7bb5efbca2fa06655746d28514b753e01c3;p=thirdparty%2Ffreeradius-server.git Better output when an IMSI starting with zero isn't in the format we expected --- diff --git a/src/modules/rlm_eap/lib/sim/id.c b/src/modules/rlm_eap/lib/sim/id.c index 22378cb3d9d..d2794036df4 100644 --- a/src/modules/rlm_eap/lib/sim/id.c +++ b/src/modules/rlm_eap/lib/sim/id.c @@ -228,6 +228,18 @@ int fr_sim_id_type(fr_sim_id_type_t *type, fr_sim_method_hint_t *hint, char cons *type = SIM_ID_TYPE_FASTAUTH; return 0; + case SIM_ID_TAG_PERMANENT_SIM: + *hint = SIM_METHOD_HINT_UNKNOWN; + *type = SIM_ID_TYPE_UNKNOWN; + fr_strerror_printf("Got SIM-Permanent-ID tag, but identity is not a permanent ID"); + return -1; + + case SIM_ID_TAG_PERMANENT_AKA: + *hint = SIM_METHOD_HINT_UNKNOWN; + *type = SIM_ID_TYPE_UNKNOWN; + fr_strerror_printf("Got AKA-Permanent-ID tag, but identity is not a permanent ID"); + return -1; + default: *hint = SIM_METHOD_HINT_UNKNOWN; *type = SIM_ID_TYPE_UNKNOWN;