diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-01-28 02:52:22 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-04 23:34:44 +0900 |
commit | 16ad368674e0053c1752393aa9f5d1521e68f025 (patch) | |
tree | 4c58b5fef1b6c2f492faf462221f5207e2580f9a /tdeioslave | |
parent | dbd135cce4bd4583897232a454e8f18a1db6a773 (diff) | |
download | tdebase-16ad368674e0053c1752393aa9f5d1521e68f025.tar.gz tdebase-16ad368674e0053c1752393aa9f5d1521e68f025.zip |
tdeioslave/sftp: purge password in the destructor
This could be useful in case the destructor will be called before
openConnection()
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 21ce69f338efb0636e9eef0e7405825b5dd7c0b0)
Diffstat (limited to 'tdeioslave')
-rw-r--r-- | tdeioslave/sftp/tdeio_sftp.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tdeioslave/sftp/tdeio_sftp.cpp b/tdeioslave/sftp/tdeio_sftp.cpp index dcefc45f1..3fb611f58 100644 --- a/tdeioslave/sftp/tdeio_sftp.cpp +++ b/tdeioslave/sftp/tdeio_sftp.cpp @@ -788,6 +788,8 @@ sftpProtocol::~sftpProtocol() { /* cleanup and shut down cryto stuff */ ssh_finalize(); + + purgeString(mPassword); } void sftpProtocol::setHost(const TQString& h, int port, const TQString& user, const TQString& pass) { |