mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-13 13:49:55 +00:00
load_roots: properly error out on an invalid option
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user