summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {