GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tls: fix leak on invalid protocol method · nodejs/node@bf0de92

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/crypto
    • crypto_context.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/crypto/crypto_context.cc‎

Copy file name to clipboardExpand all lines: src/crypto/crypto_context.cc
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,6 @@ SecureContext* SecureContext::Create(Environment* env) {
13511351
SecureContext::SecureContext(Environment* env, Local<Object> wrap)
13521352
: BaseObject(env, wrap) {
13531353
MakeWeak();
1354-
env->external_memory_accounter()->Increase(env->isolate(), kExternalSize);
13551354
}
13561355

13571356
inline void SecureContext::Reset() {
@@ -1469,6 +1468,8 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
14691468
if (!sc->ctx_) {
14701469
return ThrowCryptoError(env, ERR_get_error(), "SSL_CTX_new");
14711470
}
1471+
1472+
env->external_memory_accounter()->Increase(env->isolate(), kExternalSize);
14721473
SSL_CTX_set_app_data(sc->ctx_.get(), sc);
14731474

14741475
// Disable SSLv2 in the case when method == TLS_method() and the

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.