summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tls_wrap.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc
index d9f916f3d1..f55f8ca317 100644
--- a/src/tls_wrap.cc
+++ b/src/tls_wrap.cc
@@ -222,7 +222,10 @@ void TLSWrap::SSLInfoCallback(const SSL* ssl_, int where, int ret) {
}
}
- if (where & SSL_CB_HANDSHAKE_DONE) {
+ // SSL_CB_HANDSHAKE_START and SSL_CB_HANDSHAKE_DONE are called
+ // sending HelloRequest in OpenSSL-1.1.1.
+ // We need to check whether this is in a renegotiation state or not.
+ if (where & SSL_CB_HANDSHAKE_DONE && !SSL_renegotiate_pending(ssl)) {
Local<Value> callback;
c->established_ = true;