mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-05 00:22:11 +03:00
load_roots: properly error out on an invalid option
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
373c54e174
commit
38d41b98b3
@ -172,7 +172,11 @@ int main( int argc, char *argv[] )
|
|||||||
opt.iterations = atoi( q ) != 0;
|
opt.iterations = atoi( q ) != 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
mbedtls_printf( "Unknown option: %s\n", p );
|
mbedtls_printf( "Unknown option: %s\n", p );
|
||||||
|
mbedtls_printf( USAGE );
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
opt.filenames = (const char**) argv + i;
|
opt.filenames = (const char**) argv + i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user