sgsnemu: relax check on length of IMSI cmdline arg.

Change-Id: I0374ff8773ae528c916fbee5f3f1efd89a5d2a08
This commit is contained in:
Keith Whyte 2020-10-12 13:17:49 +02:00
parent 23c832bb4b
commit 568ac5ee8e
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ static int process_options(int argc, char **argv)
}
/* imsi */
if (strlen(args_info.imsi_arg) != 15) {
if (strlen(args_info.imsi_arg) < 6 || strlen(args_info.imsi_arg) > 15) {
printf("Invalid IMSI\n");
return -1;
}