projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8692a0
)
crypto: fix incorrect ssl shutdown check
author
Tom Hughes
<tom.hughes@palm.com>
Fri, 5 Aug 2011 22:22:54 +0000
(15:22 -0700)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Tue, 9 Aug 2011 21:54:49 +0000
(23:54 +0200)
src/node_crypto.cc
patch
|
blob
|
history
diff --git
a/src/node_crypto.cc
b/src/node_crypto.cc
index
f07bf78
..
2124348
100644
(file)
--- a/
src/node_crypto.cc
+++ b/
src/node_crypto.cc
@@
-1170,7
+1170,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();
}