Skip to content

Commit

Permalink
siputils: fix for e164_check()
Browse files Browse the repository at this point in the history
- the condition for non-digit matching was always false
  • Loading branch information
seudin committed Jan 12, 2015
1 parent 06557a2 commit 160710a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/siputils/checks.c
Expand Up @@ -417,7 +417,7 @@ static inline int e164_check(str* _user)
char c;

if ((_user->len > 2) && (_user->len < 17) && ((_user->s)[0] == '+')) {
for (i = 1; i <= _user->len; i++) {
for (i = 1; i < _user->len; i++) {
c = (_user->s)[i];
if (c < '0' || c > '9') return -1;
}
Expand Down

0 comments on commit 160710a

Please sign in to comment.