diff options
Diffstat (limited to 'src/lib/libssl/ssl_cert.c')
-rw-r--r-- | src/lib/libssl/ssl_cert.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c index 4c39925c60..e7de31949f 100644 --- a/src/lib/libssl/ssl_cert.c +++ b/src/lib/libssl/ssl_cert.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_cert.c,v 1.86 2021/10/23 20:42:50 beck Exp $ */ | 1 | /* $OpenBSD: ssl_cert.c,v 1.87 2021/11/26 16:41:42 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -229,9 +229,7 @@ ssl_cert_dup(CERT *cert) | |||
229 | 229 | ||
230 | if (cert->pkeys[i].privatekey != NULL) { | 230 | if (cert->pkeys[i].privatekey != NULL) { |
231 | ret->pkeys[i].privatekey = cert->pkeys[i].privatekey; | 231 | ret->pkeys[i].privatekey = cert->pkeys[i].privatekey; |
232 | CRYPTO_add(&ret->pkeys[i].privatekey->references, 1, | 232 | EVP_PKEY_up_ref(ret->pkeys[i].privatekey); |
233 | CRYPTO_LOCK_EVP_PKEY); | ||
234 | |||
235 | switch (i) { | 233 | switch (i) { |
236 | /* | 234 | /* |
237 | * If there was anything special to do for | 235 | * If there was anything special to do for |