diff options
author | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 19:27:29 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 19:27:29 -0500 |
commit | c56bd74cb18bc1a6f863501022cf7d80fa767975 (patch) | |
tree | 8c14fb608d47f495236ea2731d33d069ad130401 | |
parent | 91253a1adeed452371372eec7e338ed640ada6cd (diff) | |
download | ofono-c56bd74cb18bc1a6f863501022cf7d80fa767975.tar.gz |
gprs: Fix invalid string comparison
The default context created when provisioning fails is simply a context
with an empty APN
-rw-r--r-- | src/gprs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1888,7 +1888,7 @@ static struct pri_context *find_usable_context(struct ofono_gprs *gprs, for (l = gprs->contexts; l; l = l->next) { pri_ctx = l->data; - if (pri_ctx->context.apn == NULL) + if (pri_ctx->context.apn[0] == '\0') return pri_ctx; } |