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