diff --git a/src/node_crypto.cc b/src/node_crypto.cc index f9cb015f0b7d51..07f221c02a5b84 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2791,7 +2791,7 @@ void CipherBase::InitIv(const FunctionCallbackInfo& args) { static bool IsValidGCMTagLength(unsigned int tag_len) { - return tag_len == 4 || tag_len == 8 || tag_len >= 12 && tag_len <= 16; + return tag_len == 4 || tag_len == 8 || (tag_len >= 12 && tag_len <= 16); } bool CipherBase::InitAuthenticated(const char *cipher_type, int iv_len,