diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 7b427e37b01..111227e665c 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2911,7 +2911,7 @@ void CipherBase::SetAuthTag(const FunctionCallbackInfo& args) { } } - // Note: we don't use std::max() here to work around a header conflict. + // Note: we don't use std::min() here to work around a header conflict. cipher->auth_tag_len_ = tag_len; if (cipher->auth_tag_len_ > sizeof(cipher->auth_tag_)) cipher->auth_tag_len_ = sizeof(cipher->auth_tag_);