mirror of git://git.sysmocom.de/ofono
gprs-provision: Fix crash if no SPN present
This commit is contained in:
parent
6e60296eed
commit
3e0e183d4c
|
@ -49,7 +49,7 @@ static int example_provision_get_settings(const char *mcc, const char *mnc,
|
||||||
mcc, mnc, spn);
|
mcc, mnc, spn);
|
||||||
|
|
||||||
if (strcmp(mcc, "246") != 0 || strcmp(mnc, "81") != 0 ||
|
if (strcmp(mcc, "246") != 0 || strcmp(mnc, "81") != 0 ||
|
||||||
strcmp(spn, "oFono") != 0)
|
g_strcmp0(spn, "oFono") != 0)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
|
||||||
ofono_debug("Creating example settings for phonesim");
|
ofono_debug("Creating example settings for phonesim");
|
||||||
|
|
Loading…
Reference in New Issue