kwalletd: warn on failure to save salt

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-03-29 02:30:04 +03:00
parent 912c4d822e
commit a58ea0da52

View file

@ -268,6 +268,7 @@ QByteArray Backend::createAndSaveSalt(const QString& path) const
::free(randomData);
if (saltFile.write(salt) != PBKDF2_SHA512_SALTSIZE) {
kWarning() << "Could not save salt to" << path;
return QByteArray();
}