]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps/cmp.c: fix bug not allowing to reset -csr and -serial option values
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Fri, 4 Aug 2023 17:02:28 +0000 (19:02 +0200)
committerHugo Landau <hlandau@openssl.org>
Tue, 5 Sep 2023 10:47:59 +0000 (11:47 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21659)

apps/cmp.c

index dbc609a2e00375ad2cedf87ae390aa626d3a913a..b86b8ae5c14bd9fc3e2f920be018e2a3706c994f 100644 (file)
@@ -2648,7 +2648,7 @@ static int get_opts(int argc, char **argv)
             }
             break;
         case OPT_CSR:
-            opt_csr = opt_arg();
+            opt_csr = opt_str();
             break;
         case OPT_OUT_TRUSTED:
             opt_out_trusted = opt_str();
@@ -2681,7 +2681,7 @@ static int get_opts(int argc, char **argv)
             opt_issuer = opt_str();
             break;
         case OPT_SERIAL:
-            opt_serial = opt_arg();
+            opt_serial = opt_str();
             break;
         case OPT_CERTFORM:
             opt_certform_s = opt_str();