X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Fkdf.c;h=4bbb88a5aed2afa1ac5adbcffb8d6c434ade33b5;hb=021410ea3fc3876538830839d16b67e610d12785;hp=ba14cfdc765283bf6c56a25c054f4348a0bbfe23;hpb=c678f68a19638c1e2bbfee6a7a1d8d728976ce66;p=openssl.git diff --git a/apps/kdf.c b/apps/kdf.c index ba14cfdc76..4bbb88a5ae 100644 --- a/apps/kdf.c +++ b/apps/kdf.c @@ -89,13 +89,12 @@ opthelp: break; } } + + /* One argument, the KDF name. */ argc = opt_num_rest(); argv = opt_rest(); - - if (argc != 1) { - BIO_printf(bio_err, "Invalid number of extra arguments\n"); + if (argc != 1) goto opthelp; - } if ((kdf = EVP_KDF_fetch(NULL, argv[0], NULL)) == NULL) { BIO_printf(bio_err, "Invalid KDF name %s\n", argv[0]);