diff options
author | Tobias Nießen <tniessen@users.noreply.github.com> | 2018-03-08 20:36:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 20:36:35 +0100 |
commit | 03e57f3a7b39fdba3daba31514eeebb3e9755ddc (patch) | |
tree | 90379881169a72580dd156a0ca9cd53b5ed43af3 | |
parent | 3dfce5cdad554d2eabd001a4a917efa143739711 (diff) | |
download | node-new-crypto-update-0-is-false.tar.gz |
crypto: consistently use bool over intcrypto-update-0-is-false
-rw-r--r-- | src/node_crypto.cc | 2 |
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) { |