From 94db871ecfd454ec264ee6c42524f36f7a790679 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 5 Aug 2011 15:22:54 -0700 Subject: [PATCH] crypto: fix incorrect ssl shutdown check --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index f07bf785b20..2124348f9b6 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1170,7 +1170,7 @@ Handle 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(); }