diff options
author | Nathan Williams <njw@chromium.org> | 2012-02-28 10:13:10 -0500 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-16 14:53:18 +0100 |
commit | 6f22eb6a635a9c2f132df1da3082949dc4ef826b (patch) | |
tree | 18c7e98a6012791efb95723d9884d683745b50e4 | |
parent | 94a110960e2401294a86c96575ec2a2d4fd61ce4 (diff) |
broadband-bearer: don't choke if an APN wasn't specified when parsing PDP list
Change-Id: I1535fdae0659ae049b4a795d85017abe1fea6be8
-rw-r--r-- | src/mm-broadband-bearer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c index 508da561..a63b08ff 100644 --- a/src/mm-broadband-bearer.c +++ b/src/mm-broadband-bearer.c @@ -857,7 +857,8 @@ parse_pdp_list (MMBaseModem *self, mm_dbg ("Found PDP context with CID %u and no APN", pdp->cid); cid = pdp->cid; - } else if (g_str_equal (pdp->apn, ctx->self->priv->apn)) { + } else if (ctx->self->priv->apn && + g_str_equal (pdp->apn, ctx->self->priv->apn)) { /* Found a PDP context with the same CID, we'll use it. */ mm_dbg ("Found PDP context with CID %u for APN '%s'", pdp->cid, pdp->apn); |