crypto: fix incorrect ssl shutdown check

pull/5370/head
Tom Hughes 2011-08-05 15:22:54 -07:00 committed by Ben Noordhuis
parent a8692a0154
commit 94db871ecf
1 changed files with 1 additions and 1 deletions

View File

@ -1170,7 +1170,7 @@ Handle<Value> Connection::ReceivedShutdown(const Arguments& args) {
if (ss->ssl_ == NULL) return False();
int r = SSL_get_shutdown(ss->ssl_);
if (r | SSL_RECEIVED_SHUTDOWN) return True();
if (r & SSL_RECEIVED_SHUTDOWN) return True();
return False();
}