Skip to content

Commit

Permalink
I believe I Migrated error the error. Will check and do any changes i…
Browse files Browse the repository at this point in the history
…f noticed something wrong.
  • Loading branch information
Xavier-J-Ortiz committed Dec 17, 2017
1 parent 97cee72 commit b251e5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/_tls_legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const assert = require('assert');
const { Buffer } = require('buffer');
const common = require('_tls_common');
const { Connection } = process.binding('crypto');
const errors = require('internal/errors')
const EventEmitter = require('events');
const stream = require('stream');
const { Timer } = process.binding('timer_wrap');
Expand Down Expand Up @@ -632,7 +633,7 @@ function onhandshakestart() {
// state machine and OpenSSL is not re-entrant. We cannot allow the user's
// callback to destroy the connection right now, it would crash and burn.
setImmediate(function() {
var err = new Error('TLS session renegotiation attack detected');
const err = new errors.Error('ERR_TLS_SESSION_ATTACK');
if (self.cleartext) self.cleartext.emit('error', err);
});
}
Expand Down

0 comments on commit b251e5c

Please sign in to comment.