CTLOG_new_ex: Fix copy&paste error when setting propq
authorTomas Mraz <tomas@openssl.org>
Mon, 30 May 2022 15:02:03 +0000 (17:02 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 Jun 2022 10:08:12 +0000 (12:08 +0200)
Fixes #18431

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18432)

crypto/ct/ct_log.c

index 9b77d7a96346bdbd0c798ff9a10946fa291223c6..ec6ac1dd7f68db65128ac67e1ec0cf5d895d65bf 100644 (file)
@@ -276,7 +276,7 @@ CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name, OSSL_LIB_CTX *libctx
 
     ret->libctx = libctx;
     if (propq != NULL) {
-        ret->name = OPENSSL_strdup(propq);
+        ret->propq = OPENSSL_strdup(propq);
         if (ret->propq == NULL) {
             ERR_raise(ERR_LIB_CT, ERR_R_MALLOC_FAILURE);
             goto err;