mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-13 16:30:29 -05:00
Break instead of returning
This commit is contained in:
parent
75dc21c66d
commit
4dab30ce6f
@ -169,13 +169,13 @@ void TestSymmetricCipher::testTwofish256CbcEncryption()
|
||||
for (int j = 0; j < 5000; ++j) {
|
||||
ctCur = cipher.process(ptNext, &ok);
|
||||
if (!ok)
|
||||
return;
|
||||
break;
|
||||
ptNext = ctPrev;
|
||||
ctPrev = ctCur;
|
||||
|
||||
ctCur = cipher.process(ptNext, &ok);
|
||||
if (!ok)
|
||||
return;
|
||||
break;
|
||||
ptNext = ctPrev;
|
||||
ctPrev = ctCur;
|
||||
}
|
||||
@ -230,12 +230,12 @@ void TestSymmetricCipher::testTwofish256CbcDecryption()
|
||||
for (int j = 0; j < 5000; ++j) {
|
||||
ptCur = cipher.process(ctNext, &ok);
|
||||
if (!ok)
|
||||
return;
|
||||
break;
|
||||
ctNext = ptCur;
|
||||
|
||||
ptCur = cipher.process(ctNext, &ok);
|
||||
if (!ok)
|
||||
return;
|
||||
break;
|
||||
ctNext = ptCur;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user