From bb27885251fd8e0f5bff02e42e773e33ea37630c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 18 Dec 2010 15:34:10 -0800 Subject: [PATCH] TLS: check we're not disconnected before Cleartext blow --- lib/tls.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tls.js b/lib/tls.js index d0607b5757..18d2f41581 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -233,6 +233,7 @@ CleartextStream.prototype._sucker = function(b) { CleartextStream.prototype._blower = function(pool, offset, length) { debug('reading from clearOut'); + if (!this.pair._ssl) return -1; return this.pair._ssl.clearOut(pool, offset, length); };