commit | 0504ac2387c2d08e395201249961e2555f66a257 | [log] [tgz] |
---|---|---|
author | Aditya Deshpande <aditya.deshpande@arm.com> | Mon Jan 30 15:58:50 2023 +0000 |
committer | Aditya Deshpande <aditya.deshpande@arm.com> | Thu Feb 02 12:07:06 2023 +0000 |
tree | c3b43349ca2fb01745d6c5ee95d3af67be13a8e1 | |
parent | 45379cbe6b58f1dcfea9137e8652f3a24ef24ba6 [diff] [blame] |
Fix bugs in example programs: change argc == 0 to argc < 2 Signed-off-by: Aditya Deshpande <aditya.deshpande@arm.com>
diff --git a/programs/pkey/dh_genprime.c b/programs/pkey/dh_genprime.c index b09ef42..9037ce3 100644 --- a/programs/pkey/dh_genprime.c +++ b/programs/pkey/dh_genprime.c
@@ -75,7 +75,7 @@ mbedtls_ctr_drbg_init(&ctr_drbg); mbedtls_entropy_init(&entropy); - if (argc == 0) { + if (argc < 2) { usage: mbedtls_printf(USAGE); goto exit;