diff options
Diffstat (limited to 'lib/_tls_legacy.js')
-rw-r--r-- | lib/_tls_legacy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index 4148085503..fc0d115aee 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -92,11 +92,11 @@ function onCryptoStreamFinish() { // Generate close notify // NOTE: first call checks if client has sent us shutdown, // second call enqueues shutdown into the BIO. - if (this.pair.ssl.shutdown() !== 1) { + if (this.pair.ssl.shutdownSSL() !== 1) { if (this.pair.ssl && this.pair.ssl.error) return this.pair.error(); - this.pair.ssl.shutdown(); + this.pair.ssl.shutdownSSL(); } if (this.pair.ssl && this.pair.ssl.error) |