Handle the case where there's no APNs set up on the card.
Based on patch from Torgny Johansson <torgny.johansson@ericsson.com>.
This commit is contained in:
@@ -1072,6 +1072,8 @@ existing_apns_read (MMSerial *serial,
|
|||||||
g_match_info_free (match_info);
|
g_match_info_free (match_info);
|
||||||
g_regex_unref (r);
|
g_regex_unref (r);
|
||||||
}
|
}
|
||||||
|
} else if (strlen (response->str) == 0) {
|
||||||
|
/* No APNs configured, just don't set error */
|
||||||
} else
|
} else
|
||||||
info->error = g_error_new_literal (MM_MODEM_ERROR,
|
info->error = g_error_new_literal (MM_MODEM_ERROR,
|
||||||
MM_MODEM_ERROR_GENERAL,
|
MM_MODEM_ERROR_GENERAL,
|
||||||
|
Reference in New Issue
Block a user