mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Bug 1741451 - Replace inBytes.size == 0 with inBytes.empty(). r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D131796
This commit is contained in:
parent
98767c3d56
commit
76b501598c
@ -636,7 +636,7 @@ nsresult AbstractOSKeyStore::DoCipher(const UniquePK11SymKey& aSymKey,
|
||||
|
||||
// Build params.
|
||||
// We need to get the IV from inBytes if we decrypt.
|
||||
if (!encrypt && (inBytes.size() < mIVLength || inBytes.size() == 0)) {
|
||||
if (!encrypt && (inBytes.size() < mIVLength || inBytes.empty())) {
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user