diff options
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r-- | src/mm-modem-helpers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index c969b665..a780b15f 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -1629,6 +1629,11 @@ mm_3gpp_profile_list_find_best (GList *profile_list, iter_profile_id = mm_3gpp_profile_get_profile_id (iter_profile); + if (iter_profile_id < min_profile_id) { + mm_obj_dbg (log_object, "skipping context at profile %d: out of bounds", iter_profile_id); + continue; + } + /* Always prefer an exact match; compare all supported fields except for profile id */ if (mm_3gpp_profile_cmp (iter_profile, requested, cmp_apn, cmp_flags)) { mm_obj_dbg (log_object, "found exact context at profile %d", iter_profile_id); |