aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-sim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-sim.c b/src/mm-sim.c
index a63fdfba..7cdb356b 100644
--- a/src/mm-sim.c
+++ b/src/mm-sim.c
@@ -1074,7 +1074,9 @@ parse_imsi (const gchar *response,
g_assert (response != NULL);
- for (s = response, len = 0; *s; ++s, ++len) {
+ for (s = mm_strip_tag (response, "+CIMI"), len = 0;
+ *s;
+ ++s, ++len) {
/* IMSI is a number with 15 or less decimal digits. */
if (!isdigit (*s) || len > 15) {
g_set_error (error,