aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-broadband-bearer.c14
-rw-r--r--src/mm-modem-helpers.c2
2 files changed, 13 insertions, 3 deletions
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c
index bb2209ea..a697e084 100644
--- a/src/mm-broadband-bearer.c
+++ b/src/mm-broadband-bearer.c
@@ -924,10 +924,20 @@ parse_pdp_list (MMBaseModem *modem,
return FALSE;
}
+ if (error) {
+ mm_dbg ("Unexpected +CGDCONT? error: '%s'", error->message);
+ return FALSE;
+ }
+
pdp_list = mm_3gpp_parse_cgdcont_read_response (response, &inner_error);
if (!pdp_list) {
- /* No predefined PDP contexts found */
- mm_dbg ("No PDP contexts found");
+ if (inner_error) {
+ mm_dbg ("%s", inner_error->message);
+ g_error_free (inner_error);
+ } else {
+ /* No predefined PDP contexts found */
+ mm_dbg ("No PDP contexts found");
+ }
return FALSE;
}
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
index 9eefb33e..8bdc0e76 100644
--- a/src/mm-modem-helpers.c
+++ b/src/mm-modem-helpers.c
@@ -847,7 +847,7 @@ mm_3gpp_parse_cgdcont_read_response (const gchar *reply,
GMatchInfo *match_info;
GList *list;
- if (!reply[0])
+ if (!reply || !reply[0])
/* No APNs configured, all done */
return NULL;