From 854f840243b0b531f9569f9304a6810b01bd9778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 21 Apr 2018 10:56:47 +0200 Subject: [PATCH] crypto: fix explanation in CipherBase::SetAuthTag PR-URL: https://github.com/nodejs/node/pull/20197 Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b37b7e62c27..2bdda4566dd 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2910,7 +2910,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_);