Comparing version 0.9.5 to 0.9.6
{ | ||
"name": "curvecp", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "Pure javascript CurveCP library", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -105,3 +105,3 @@ var Chicago = require('./chicago.js') | ||
var self = this | ||
setImmediate(function () { | ||
process.nextTick(function () { | ||
if (self.canProcessMessage()) { | ||
@@ -108,0 +108,0 @@ self.processMessage() |
@@ -466,4 +466,4 @@ 'use strict' | ||
var boxData = this._decrypt(cookieMessage.subarray(40, 200), 'CurveCPK', this.serverPublicKey, this.clientConnectionPrivateKey) | ||
if (boxData === undefined) { | ||
this._log.warn('Not able to decrypt welcome box data') | ||
if (boxData === undefined || !boxData) { | ||
this._log.warn('Not able to decrypt cookie box data') | ||
return | ||
@@ -474,3 +474,3 @@ } | ||
if (this.__serverCookie.length !== 96) { | ||
this._log.warn('Welcome command server cookie invalid') | ||
this._log.warn('Server cookie invalid') | ||
return | ||
@@ -477,0 +477,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66980