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

(cherry picked from commit 160710a)
(cherry picked from commit a56b51d)
  • Loading branch information
seudin authored and miconda committed Jan 15, 2015
1 parent 799b61f commit 8c6a2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/siputils/checks.c
Expand Up @@ -423,7 +423,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 8c6a2a9

Please sign in to comment.