projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add X509_up_ref function.
[openssl.git]
/
crypto
/
ocsp
/
ocsp_cl.c
diff --git
a/crypto/ocsp/ocsp_cl.c
b/crypto/ocsp/ocsp_cl.c
index ef8ff30031ef18a973a8937abc3c72d9d16b02df..81433898735482f7e03d18a48d9476769fd5e87e 100644
(file)
--- a/
crypto/ocsp/ocsp_cl.c
+++ b/
crypto/ocsp/ocsp_cl.c
@@
-138,7
+138,7
@@
int OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert)
if (!sk_X509_push(sig->certs, cert))
return 0;
-
CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509
);
+
X509_up_ref(cert
);
return 1;
}