]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/genrsa.c
APPS: Improve diagnostics for string options and options expecting int >= 0
[thirdparty/openssl.git] / apps / genrsa.c
index ee68d670433605a93e4212a68e16f3a7693e9759..e5118d49025a97553bbac0c5d750d6f23c5e111d 100644 (file)
@@ -134,8 +134,7 @@ opthelp:
             ciphername = opt_unknown();
             break;
         case OPT_PRIMES:
-            if (!opt_int(opt_arg(), &primes))
-                goto end;
+            primes = opt_int_arg();
             break;
         case OPT_VERBOSE:
             verbose = 1;