🐛 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 authored and Janek Bevendorff committed 2017-10-21 20:00:28 +02:00
1 parent aba2acb062
commit a895729b9e
1 file changed
+2 -1
+2 -1
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;
}