Remove redundant pointer check in SSL engine.

This commit is contained in:
Christopher Kohlhoff 2015-03-21 20:52:42 +11:00
parent 4b07c86ecf
commit aa21de0944

View File

@ -206,7 +206,7 @@ const asio::error_code& engine::map_error_code(
// 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.