| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1351,7 +1351,6 @@ SecureContext* SecureContext::Create(Environment* env) { | |||
| 1351 | 1351 | SecureContext::SecureContext(Environment* env, Local<Object> wrap) | |
| 1352 | 1352 | : BaseObject(env, wrap) { | |
| 1353 | 1353 | MakeWeak(); | |
| 1354 | - env->external_memory_accounter()->Increase(env->isolate(), kExternalSize); | ||
| 1355 | 1354 | } | |
| 1356 | 1355 | ||
| 1357 | 1356 | inline void SecureContext::Reset() { | |
@@ -1469,6 +1468,8 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) { | |||
| 1469 | 1468 | if (!sc->ctx_) { | |
| 1470 | 1469 | return ThrowCryptoError(env, ERR_get_error(), "SSL_CTX_new"); | |
| 1471 | 1470 | } | |
| 1471 | + | ||
| 1472 | + env->external_memory_accounter()->Increase(env->isolate(), kExternalSize); | ||
| 1472 | 1473 | SSL_CTX_set_app_data(sc->ctx_.get(), sc); | |
| 1473 | 1474 | ||
| 1474 | 1475 | // Disable SSLv2 in the case when method == TLS_method() and the | |
| Back | FazBrowse Home | New Git URL |
0 commit comments