Skip to content

Commit

Permalink
crypto: use bool over int consistently
Browse files Browse the repository at this point in the history
Backport-PR-URL: #22380
PR-URL: #19238
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
tniessen authored and MylesBorins committed Sep 6, 2018
1 parent 7ed297d commit 4d5cb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3736,7 +3736,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) {
Expand Down

0 comments on commit 4d5cb4c

Please sign in to comment.