summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@users.noreply.github.com>2018-03-08 20:36:35 +0100
committerGitHub <noreply@github.com>2018-03-08 20:36:35 +0100
commit03e57f3a7b39fdba3daba31514eeebb3e9755ddc (patch)
tree90379881169a72580dd156a0ca9cd53b5ed43af3
parent3dfce5cdad554d2eabd001a4a917efa143739711 (diff)
downloadnode-new-crypto-update-0-is-false.tar.gz
crypto: consistently use bool over intcrypto-update-0-is-false
-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 b3c9149b03..5c5981b76b 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -3281,7 +3281,7 @@ bool CipherBase::Update(const char* data,
unsigned char** out,
int* out_len) {
if (ctx_ == nullptr)
- return 0;
+ return false;
// on first update:
if (kind_ == kDecipher && IsAuthenticatedMode() && auth_tag_len_ > 0) {