]> 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)
committerDr. David von Oheimb <dev@ddvo.net>
Tue, 5 Sep 2023 19:11:33 +0000 (21:11 +0200)
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)

(cherry picked from commit 374945a9aa545d4d6f015de0b48cbed6a90258e0)

apps/cmp.c

index d81199f082d540039acbdee270da05aa817d786e..ffcd86dba8a3d40746ada7d34774f8d73626a079 100644 (file)
@@ -2512,7 +2512,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();