Browse Source

TLS: check we're not disconnected before Cleartext blow

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
bb27885251
  1. 1
      lib/tls.js

1
lib/tls.js

@ -233,6 +233,7 @@ CleartextStream.prototype._sucker = function(b) {
CleartextStream.prototype._blower = function(pool, offset, length) { CleartextStream.prototype._blower = function(pool, offset, length) {
debug('reading from clearOut'); debug('reading from clearOut');
if (!this.pair._ssl) return -1;
return this.pair._ssl.clearOut(pool, offset, length); return this.pair._ssl.clearOut(pool, offset, length);
}; };

Loading…
Cancel
Save