Finish aligning up_ref functions with OpenSSL 1.1.0.
All external callers should be resolved now.
BUG=89
Change-Id: I6055450e8202c59cca49e4a824be3ec11c32a15a
Reviewed-on: https://boringssl-review.googlesource.com/10285
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c
index 20a8884..c35834e 100644
--- a/ssl/ssl_cert.c
+++ b/ssl/ssl_cert.c
@@ -171,7 +171,8 @@
ret->dh_tmp_cb = cert->dh_tmp_cb;
if (cert->x509 != NULL) {
- ret->x509 = X509_up_ref(cert->x509);
+ X509_up_ref(cert->x509);
+ ret->x509 = cert->x509;
}
if (cert->privatekey != NULL) {