🐛 Fix result propagation in SymmetricCipherGcrypt::process

The boolean 'ok' has always been set to true, regardless of possible errors.
This commit is contained in:
Peter Nirschl 2017-10-21 19:18:19 +02:00 committed by Janek Bevendorff
parent aba2acb062
commit a895729b9e

View File

@ -148,9 +148,10 @@ QByteArray SymmetricCipherGcrypt::process(const QByteArray& data, bool* ok)
if (error != 0) {
setErrorString(error);
*ok = false;
} else {
*ok = true;
}
*ok = true;
return result;
}