You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2023/02/27 19:42:19 UTC
[trafficserver] branch master updated: Fix SSLSessionDup for old OpenSSL and BoringSSL (#9444)
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 3f6282128 Fix SSLSessionDup for old OpenSSL and BoringSSL (#9444)
3f6282128 is described below
commit 3f6282128777b1467dceff3b2c2c8dd28d3f0ebf
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Feb 27 12:42:13 2023 -0700
Fix SSLSessionDup for old OpenSSL and BoringSSL (#9444)
---
iocore/net/SSLUtils.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 0eb5b8131..11a2d2d0a 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -2644,11 +2644,11 @@ SSLSessionDup(SSL_SESSION *sess)
return nullptr;
}
uint8_t *buf = static_cast<uint8_t *>(alloca(len));
- uint8_t **tmp = &buf;
+ uint8_t *tmp = buf;
- i2d_SSL_SESSION(sess, tmp);
- tmp = &buf;
- if (d2i_SSL_SESSION(&duplicated, const_cast<const uint8_t **>(tmp), len) == nullptr) {
+ i2d_SSL_SESSION(sess, &tmp);
+ tmp = buf;
+ if (d2i_SSL_SESSION(&duplicated, const_cast<const uint8_t **>(&tmp), len) == nullptr) {
return nullptr;
}