b5595b
diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c
b5595b
index 0e4017c..d6903f7 100644
b5595b
--- a/modules/ssl/ssl_engine_kernel.c
b5595b
+++ b/modules/ssl/ssl_engine_kernel.c
b5595b
@@ -1511,7 +1511,7 @@ static void modssl_proxy_info_log(conn_rec *c,
b5595b
     *cert = info->x509; \
b5595b
     CRYPTO_add(&(*cert)->references, +1, CRYPTO_LOCK_X509); \
b5595b
     *pkey = info->x_pkey->dec_pkey; \
b5595b
-    CRYPTO_add(&(*pkey)->references, +1, CRYPTO_LOCK_X509_PKEY)
b5595b
+    CRYPTO_add(&(*pkey)->references, +1, CRYPTO_LOCK_EVP_PKEY)
b5595b
 
b5595b
 int ssl_callback_proxy_cert(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
b5595b
 {