diff -Naur a/engine.ipp b/engine.ipp --- a/engine.ipp 2014-06-03 11:55:08.000000000 +0530 +++ b/engine.ipp 2014-06-03 11:55:43.000000000 +0530 @@ -211,7 +211,7 @@ // SSL v2 doesn't provide a protocol-level shutdown, so an eof on the // underlying transport is passed through. - if (ssl_ && ssl_->version == SSL2_VERSION) + if (ssl_->version == SSL2_VERSION) return ec; // Otherwise, the peer should have negotiated a proper shutdown.