ca8514
diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c
ca8514
index c217a0d..d07d0ba 100644
ca8514
--- a/modules/ssl/ssl_engine_kernel.c
ca8514
+++ b/modules/ssl/ssl_engine_kernel.c
ca8514
@@ -1947,7 +1947,7 @@ static void modssl_proxy_info_log(conn_rec *c,
ca8514
     *cert = info->x509; \
ca8514
     CRYPTO_add(&(*cert)->references, +1, CRYPTO_LOCK_X509); \
ca8514
     *pkey = info->x_pkey->dec_pkey; \
ca8514
-    CRYPTO_add(&(*pkey)->references, +1, CRYPTO_LOCK_X509_PKEY)
ca8514
+    CRYPTO_add(&(*pkey)->references, +1, CRYPTO_LOCK_EVP_PKEY)
ca8514
 #else
ca8514
 #define modssl_set_cert_info(info, cert, pkey) \
ca8514
     *cert = info->x509; \