File: upstream_dcc09c87_Clear-pubkey-auth-info-after-using-key.patch

package info (click to toggle)
kio-extras 4%3A25.04.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,936 kB
  • sloc: cpp: 28,907; ansic: 3,084; perl: 1,048; xml: 116; sh: 92; python: 28; makefile: 9
file content (24 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From dcc09c87bd7bb2a08903963cb16e170b08b8229c Mon Sep 17 00:00:00 2001
From: Facundo Almeida <facundoalmeida@gmail.com>
Date: Wed, 21 May 2025 23:49:21 -0300
Subject: [PATCH] Clear pubkey auth info after using key

---
 sftp/kio_sftp.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sftp/kio_sftp.cpp b/sftp/kio_sftp.cpp
index b8117edf5..504ec6555 100644
--- a/sftp/kio_sftp.cpp
+++ b/sftp/kio_sftp.cpp
@@ -890,6 +890,7 @@ Result SFTPWorker::openConnectionWithoutCloseOnError()
             }
             if (rc == SSH_AUTH_PARTIAL) {
                 qCDebug(KIO_SFTP_LOG) << "Public key authentication succeeded, but another method is still required";
+                clearPubKeyAuthInfo();
                 method = ssh_auth_list(mSession);
                 break;
             }
-- 
GitLab