summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hughes <tom.hughes@palm.com>2011-08-05 15:22:54 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2011-08-09 23:56:00 +0200
commit421b6e89aa58d1cdc3344d6fadb878f7b37eee1c (patch)
tree1363ad78802f7c685bb1e251e5fa7831c3b4d64a /src
parent25118b0a26020d7d37ac91f92e575bae0ec947d5 (diff)
downloadnodejs-421b6e89aa58d1cdc3344d6fadb878f7b37eee1c.tar.gz
nodejs-421b6e89aa58d1cdc3344d6fadb878f7b37eee1c.tar.bz2
nodejs-421b6e89aa58d1cdc3344d6fadb878f7b37eee1c.zip
crypto: fix incorrect ssl shutdown check
Diffstat (limited to 'src')
-rw-r--r--src/node_crypto.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 5b1bd34ee..0f148b4d3 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -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();
}