From 21ce69f338efb0636e9eef0e7405825b5dd7c0b0 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 28 Jan 2024 02:52:22 +0300 Subject: 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 --- tdeioslave/sftp/tdeio_sftp.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.1