mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
crypto: fix incorrect ssl shutdown check
This commit is contained in:
committed by
Ben Noordhuis
parent
25118b0a26
commit
421b6e89aa
@@ -993,7 +993,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user