X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Frsa.c;h=fb73173428cdb6eedd2ba687b6256b8e90827ab7;hp=05a091ce4be0f397d265f2f45c870edace997973;hb=d9f073575fdb07b486cd1b38974cd177687ccc1e;hpb=b0be101326f369f0dd547556d2f3eb3ef5ed0e33 diff --git a/apps/rsa.c b/apps/rsa.c index 05a091ce4b..fb73173428 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -217,14 +217,11 @@ int rsa_main(int argc, char **argv) } /* No extra arguments. */ - argc = opt_num_rest(); - if (argc != 0) + if (!opt_check_rest_arg(NULL)) goto opthelp; - if (ciphername != NULL) { - if (!opt_cipher(ciphername, &enc)) - goto opthelp; - } + if (!opt_cipher(ciphername, &enc)) + goto opthelp; private = (text && !pubin) || (!pubout && !noout) ? 1 : 0; if (!app_passwd(passinarg, passoutarg, &passin, &passout)) {