mirror of https://github.com/nodejs/node.git
crypto: fix incorrect ssl shutdown check
parent
a8692a0154
commit
94db871ecf
|
@ -1170,7 +1170,7 @@ Handle<Value> Connection::ReceivedShutdown(const Arguments& args) {
|
||||||
if (ss->ssl_ == NULL) return False();
|
if (ss->ssl_ == NULL) return False();
|
||||||
int r = SSL_get_shutdown(ss->ssl_);
|
int r = SSL_get_shutdown(ss->ssl_);
|
||||||
|
|
||||||
if (r | SSL_RECEIVED_SHUTDOWN) return True();
|
if (r & SSL_RECEIVED_SHUTDOWN) return True();
|
||||||
|
|
||||||
return False();
|
return False();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue