diff options
Diffstat (limited to 'src/tls_wrap.cc')
-rw-r--r-- | src/tls_wrap.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 626662c9a5..bacb1a0f27 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -1065,10 +1065,9 @@ int TLSWrap::SelectSNIContextCallback(SSL* s, int* ad, void* arg) { return SSL_TLSEXT_ERR_NOACK; } - p->sni_context_.Reset(env->isolate(), ctx); - SecureContext* sc = Unwrap<SecureContext>(ctx.As<Object>()); CHECK_NOT_NULL(sc); + p->sni_context_ = BaseObjectPtr<SecureContext>(sc); p->SetSNIContext(sc); return SSL_TLSEXT_ERR_OK; } |