From eb11bc26e735228c59a95b5e04ecb28f43b33495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 18 Dec 2017 13:23:46 +0100 Subject: [PATCH] crypto: reuse variable instead of reevaluation --- src/node_crypto.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 8bf9ce4e6ff832..183db20b6bd41b 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3662,7 +3662,7 @@ void CipherBase::Init(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); } @@ -3725,7 +3725,7 @@ void CipherBase::InitIv(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); }