aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-07-16 12:27:34 +0000
committerWerner Koch <[email protected]>2025-07-16 12:31:14 +0000
commita4f7417531d7cdee2caf5db39667867497852fde (patch)
tree022c93e0f62ebd382e7513d338821f380e60a172
parentagent: Fix ssh-agent's request_identities for skipped keys. (diff)
downloadgnupg-a4f7417531d7cdee2caf5db39667867497852fde.tar.gz
gnupg-a4f7417531d7cdee2caf5db39667867497852fde.zip
agent: Another fix for a regression with unknown curves and ssh
* agent/command-ssh.c (ssh_send_available_keys): Clear the error when skipping. -- Of course we need to clear the error so that in case the last key in the array was skipped, that error is not returned by the function. Updates-commit: 6bf5696c8578782a25227c0806ce5f8abcafb603 (cherry picked from commit 55db12472f1cc7034a82932f271c94e4e61bc3dd)
-rw-r--r--agent/command-ssh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index dd4df38be..9bd71e87f 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -2765,6 +2765,7 @@ ssh_send_available_keys (ctrl_t ctrl, estream_t key_blobs, u32 *r_key_counter)
* support at all but a smartcard lists that curve.
* We ignore them. */
skipped++;
+ err = 0;
}
else
goto leave;