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(); }