diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc index 0eb5b81317d..11a2d2d0a9f 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(alloca(len)); - uint8_t **tmp = &buf; + uint8_t *tmp = buf; - i2d_SSL_SESSION(sess, tmp); - tmp = &buf; - if (d2i_SSL_SESSION(&duplicated, const_cast(tmp), len) == nullptr) { + i2d_SSL_SESSION(sess, &tmp); + tmp = buf; + if (d2i_SSL_SESSION(&duplicated, const_cast(&tmp), len) == nullptr) { return nullptr; }