]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Better output when an IMSI starting with zero isn't in the format we expected
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 10 Dec 2017 12:22:07 +0000 (12:22 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 10 Dec 2017 12:22:07 +0000 (12:22 +0000)
src/modules/rlm_eap/lib/sim/id.c

index 22378cb3d9d47eff697b3a4784f5a050fd7b9b6d..d2794036df4e6b1b048aef1ed59bee68b9f18b24 100644 (file)
@@ -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;