Skip to content

Commit

Permalink
load_roots: properly error out on an invalid option
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <[email protected]>
  • Loading branch information
gilles-peskine-arm committed Jul 30, 2021
1 parent 051b1da commit 9f6ab29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions programs/x509/load_roots.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,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;
Expand Down

0 comments on commit 9f6ab29

Please sign in to comment.