Skip to content

Commit

Permalink
crypto: reuse variable instead of reevaluation
Browse files Browse the repository at this point in the history
Backport-PR-URL: #19114
PR-URL: #17735
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
tniessen authored and MylesBorins committed Mar 28, 2018
1 parent bc66f08 commit 44cb0d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3449,7 +3449,7 @@ void CipherBase::Init(const char* cipher_type,
nullptr,
reinterpret_cast<unsigned char*>(key),
reinterpret_cast<unsigned char*>(iv),
kind_ == kCipher);
encrypt);
}


Expand Down Expand Up @@ -3518,7 +3518,7 @@ void CipherBase::InitIv(const char* cipher_type,
nullptr,
reinterpret_cast<const unsigned char*>(key),
reinterpret_cast<const unsigned char*>(iv),
kind_ == kCipher);
encrypt);
}


Expand Down

0 comments on commit 44cb0d3

Please sign in to comment.