]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove some unneeded variables from dhparam
authorMatt Caswell <matt@openssl.org>
Wed, 14 Oct 2020 15:28:01 +0000 (16:28 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 23 Nov 2020 09:01:07 +0000 (09:01 +0000)
Previously changes left some variables behind that were no longer needed.
We now remove them.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13231)

apps/dhparam.c

index f9587dd71ea50e954adb9a7f0db68a381e399228..6717c952e96a18fbfa574aa9079f497ad5c7d51d 100644 (file)
@@ -79,7 +79,6 @@ const OPTIONS dhparam_options[] = {
 int dhparam_main(int argc, char **argv)
 {
     BIO *in = NULL, *out = NULL;
-    DH *dh = NULL, *alloc_dh = NULL;
     EVP_PKEY *pkey = NULL, *tmppkey = NULL;
     EVP_PKEY_CTX *ctx = NULL;
     char *infile = NULL, *outfile = NULL, *prog;
@@ -343,7 +342,6 @@ int dhparam_main(int argc, char **argv)
  end:
     if (ret != 0)
         ERR_print_errors(bio_err);
-    DH_free(alloc_dh);
     BIO_free(in);
     BIO_free_all(out);
     EVP_PKEY_free(pkey);