Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(toxencrypt): return the plaintext after decryption
Browse files Browse the repository at this point in the history
fix #4162
  • Loading branch information
sudden6 committed Feb 10, 2017
1 parent 1e7fc8c commit 14ee8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/toxencrypt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ QByteArray ToxEncrypt::decryptPass(const QString& password, const QByteArray& ci
return QByteArray{};
}

return ciphertext;
return plaintext;
}

/**
Expand Down Expand Up @@ -275,7 +275,7 @@ QByteArray ToxEncrypt::decrypt(const QByteArray& ciphertext) const
return QByteArray{};
}

return ciphertext;
return plaintext;
}

/**
Expand Down

0 comments on commit 14ee8af

Please sign in to comment.