diff options
author | Dan Williams <dcbw@redhat.com> | 2014-05-07 13:46:38 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-05-07 16:18:11 -0500 |
commit | 8e3b67bf44bf339a9b341ab02d67af92d6d185e2 (patch) | |
tree | 1b8108036764dd9b16aabce326c71b6403d79a5c | |
parent | 828e2e00eb8e4ced54ec51fb61bfdb37df526935 (diff) |
broadband-bearer-qmi: don't set APN if it isn't given
If the APN was empty (implying that the modem/network should choose
the default APN) this caused an assertion in libqmi. Just don't
set an APN if we aren't given one.
-rw-r--r-- | src/mm-bearer-qmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 438d0d0f..7152e946 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -218,7 +218,7 @@ build_start_network_input (ConnectContext *ctx) input = qmi_message_wds_start_network_input_new (); - if (ctx->apn) + if (ctx->apn && ctx->apn[0]) qmi_message_wds_start_network_input_set_apn (input, ctx->apn, NULL); if (ctx->auth != QMI_WDS_AUTHENTICATION_NONE) { |