mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00
kwalletd: warn on failure to save salt
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
912c4d822e
commit
a58ea0da52
1 changed files with 7 additions and 6 deletions
|
@ -268,6 +268,7 @@ QByteArray Backend::createAndSaveSalt(const QString& path) const
|
||||||
::free(randomData);
|
::free(randomData);
|
||||||
|
|
||||||
if (saltFile.write(salt) != PBKDF2_SHA512_SALTSIZE) {
|
if (saltFile.write(salt) != PBKDF2_SHA512_SALTSIZE) {
|
||||||
|
kWarning() << "Could not save salt to" << path;
|
||||||
return QByteArray();
|
return QByteArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue