load_roots: properly error out on an invalid option
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
01997e119f
commit
9a2114ca57
1 changed files with 4 additions and 0 deletions
|
@ -168,7 +168,11 @@ int main( int argc, char *argv[] )
|
|||
opt.iterations = atoi( q ) != 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
mbedtls_printf( "Unknown option: %s\n", p );
|
||||
mbedtls_printf( USAGE );
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
opt.filenames = (const char**) argv + i;
|
||||
|
|
Loading…
Reference in a new issue