mirror of git://git.sysmocom.de/ofono
common: APN with a dot in second position are not invalid
APN with a dot in second position (example: "t.est") are wrongly considered invalid.
This commit is contained in:
parent
07e00b7215
commit
7594a000dd
|
@ -709,7 +709,7 @@ const char *registration_tech_to_string(int tech)
|
||||||
gboolean is_valid_apn(const char *apn)
|
gboolean is_valid_apn(const char *apn)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int last_period = 0;
|
int last_period = -1;
|
||||||
|
|
||||||
if (apn == NULL)
|
if (apn == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue