Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
crypto: fix incorrect ssl shutdown check
Browse files Browse the repository at this point in the history
  • Loading branch information
thughes authored and bnoordhuis committed Aug 9, 2011
1 parent 25118b0 commit 421b6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 421b6e8

Please sign in to comment.