]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Cosmetic fix for fr_aka_sim_id_type errors
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 28 Apr 2021 17:01:08 +0000 (12:01 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 28 Apr 2021 17:01:08 +0000 (12:01 -0500)
src/lib/eap_aka_sim/id.c

index 78fb26fc5297660dc9d68bad500b91861b09a9dd..6e8974bca2bca9bbef2372893132886215f8e657 100644 (file)
@@ -167,6 +167,12 @@ int fr_aka_sim_id_type(fr_aka_sim_id_type_t *type, fr_aka_sim_method_hint_t *hin
 {
        size_t i;
 
+       /*
+        *      May not fail in the first part of this function
+        *      so we need to clear any pending messages.
+        */
+       fr_strerror_clear();
+
        if (id_len < 1) {
                if (hint) *hint = AKA_SIM_METHOD_HINT_UNKNOWN;
                if (type) *type = AKA_SIM_ID_TYPE_UNKNOWN;