]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
genpkey.c: Fix filename copy & paste bug in error output
authorBartel Artem <artem.bartel@gmail.com>
Mon, 9 Jun 2025 04:23:06 +0000 (07:23 +0300)
committerTomas Mraz <tomas@openssl.org>
Tue, 10 Jun 2025 17:55:03 +0000 (19:55 +0200)
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27789)

apps/genpkey.c

index eaca1e0dea637446a6920bdc209b1af9e2be6e47..b37a1526b441d6c0f0929d71fb09e9b27bdac981 100644 (file)
@@ -302,12 +302,14 @@ int genpkey_main(int argc, char **argv)
         if (mem_outpubkey != NULL) {
             rv = mem_bio_to_file(mem_outpubkey, outpubkeyfile, outformat, private);
             if (!rv)
-                BIO_printf(bio_err, "Error writing to outpubkey: '%s'. Error: %s\n", outpubkeyfile, strerror(errno));
+                BIO_printf(bio_err, "Error writing to outpubkey: '%s'. Error: %s\n",
+                           outpubkeyfile, strerror(errno));
         }
         if (mem_out != NULL) {
             rv = mem_bio_to_file(mem_out, outfile, outformat, private);
             if (!rv)
-                BIO_printf(bio_err, "Error writing to outfile: '%s'. Error: %s\n", outpubkeyfile, strerror(errno));
+                BIO_printf(bio_err, "Error writing to outfile: '%s'. Error: %s\n",
+                           outfile, strerror(errno));
         }
     }
     EVP_PKEY_free(pkey);