From 6f22eb6a635a9c2f132df1da3082949dc4ef826b Mon Sep 17 00:00:00 2001 From: Nathan Williams Date: Tue, 28 Feb 2012 10:13:10 -0500 Subject: [PATCH] broadband-bearer: don't choke if an APN wasn't specified when parsing PDP list Change-Id: I1535fdae0659ae049b4a795d85017abe1fea6be8 --- src/mm-broadband-bearer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);