mirror of git://git.sysmocom.de/ofono
Fix: Regression in PIN validity checking
This commit is contained in:
parent
edba0296c5
commit
0aebcb342c
|
@ -589,7 +589,7 @@ gboolean is_valid_pin(const char *pin, enum pin_type type)
|
|||
return FALSE;
|
||||
|
||||
i = strlen(pin);
|
||||
if (i != strspn(pin, "012345679"))
|
||||
if (i != strspn(pin, "0123456789"))
|
||||
return FALSE;
|
||||
|
||||
switch (type) {
|
||||
|
|
Loading…
Reference in New Issue