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:
Christophe Ronco 2020-09-28 09:38:09 +02:00 committed by Denis Kenzior
parent 07e00b7215
commit 7594a000dd
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ const char *registration_tech_to_string(int tech)
gboolean is_valid_apn(const char *apn)
{
int i;
int last_period = 0;
int last_period = -1;
if (apn == NULL)
return FALSE;