commit | 7594a000ddbc0a5d85fb522d6d787422f1650a48 | [log] [tgz] |
---|---|---|
author | Christophe Ronco <c.ronco@kerlink.fr> | Mon Sep 28 09:38:09 2020 +0200 |
committer | Denis Kenzior <denkenz@gmail.com> | Tue Sep 29 09:11:08 2020 -0500 |
tree | 64d01b149b3d102240de8d9c85f4fdbfc777dbc5 | |
parent | 07e00b7215cd98aa033f2ebc4ff169662d95d34c [diff] |
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.
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 @@ gboolean is_valid_apn(const char *apn) { int i; - int last_period = 0; + int last_period = -1; if (apn == NULL) return FALSE;