diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-04-21 13:08:21 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-04-24 18:54:32 +0200 |
commit | d830526c711074fdcd82c70c24c31444366a1ed8 (patch) | |
tree | b0b29b721564c2b5a25765f5fd33902c46122588 /apps/speed.c | |
parent | 1ae33400bf6559fa9ca9aa2232120dbc7ddc19b8 (diff) |
APPS: Improve diagnostics for string options and options expecting int >= 0
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14970)
Diffstat (limited to 'apps/speed.c')
-rw-r--r-- | apps/speed.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/speed.c b/apps/speed.c index d867e87e45..939baf934d 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1596,8 +1596,7 @@ int speed_main(int argc, char **argv) #endif break; case OPT_MISALIGN: - if (!opt_int(opt_arg(), &misalign)) - goto end; + misalign = opt_int_arg(); if (misalign > MISALIGN) { BIO_printf(bio_err, "%s: Maximum offset is %d\n", prog, MISALIGN); @@ -1625,8 +1624,7 @@ int speed_main(int argc, char **argv) goto end; break; case OPT_PRIMES: - if (!opt_int(opt_arg(), &primes)) - goto end; + primes = opt_int_arg(); break; case OPT_SECONDS: seconds.sym = seconds.rsa = seconds.dsa = seconds.ecdsa |