Skip to content
Snippets Groups Projects
Commit 58148548 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

fix to validate_puk

parent 4427b7c7
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ int validate_puk_format(char *puk) ...@@ -124,7 +124,7 @@ int validate_puk_format(char *puk)
if (!isdigits(puk)) { if (!isdigits(puk)) {
debug_print("Please enter digits only!\n"); debug_print("Please enter digits only!\n");
goto fail; goto fail;
} else if (strlen(puk) == 8) { } else if (strlen(puk) != 8) {
debug_print("Please enter 8 digits!\n"); debug_print("Please enter 8 digits!\n");
goto fail; goto fail;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment