APN with a dot in second position (example: "t.est") are wrongly
considered invalid.
---
src/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common.c b/src/common.c
index 4dcbc83..f955a76 100644
--- a/src/common.c
+++ b/src/common.c
@@ -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;
--
2.7.4
_______________________________________________
ofono mailing list -- [email protected]
To unsubscribe send an email to [email protected]