summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-01-28 02:52:22 +0300
committerTDE Gitea <[email protected]>2024-03-04 11:04:11 +0000
commit21ce69f338efb0636e9eef0e7405825b5dd7c0b0 (patch)
tree57b4071d95cd495f3bbfa6d044af7f2c85a0646d
parent009382772da4cb5a56749ea67ed29c09658a4f69 (diff)
downloadtdebase-21ce69f338efb0636e9eef0e7405825b5dd7c0b0.tar.gz
tdebase-21ce69f338efb0636e9eef0e7405825b5dd7c0b0.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 <[email protected]>
-rw-r--r--tdeioslave/sftp/tdeio_sftp.cpp2
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) {