commit | 9a2114ca574658fd200d0e966ebf7064e531dc8f | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Jul 30 13:01:52 2021 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Mon Oct 25 22:09:12 2021 +0200 |
tree | c313cb07bea139a6ef080d228d50105a8180208d | |
parent | 01997e119f5c3d76c949f59420df0c339ce88c35 [diff] [blame] |
load_roots: properly error out on an invalid option Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/programs/x509/load_roots.c b/programs/x509/load_roots.c index 2dff951..7e52957 100644 --- a/programs/x509/load_roots.c +++ b/programs/x509/load_roots.c
@@ -168,7 +168,11 @@ opt.iterations = atoi( q ) != 0; } else + { mbedtls_printf( "Unknown option: %s\n", p ); + mbedtls_printf( USAGE ); + goto exit; + } } opt.filenames = (const char**) argv + i;