From a4f7417531d7cdee2caf5db39667867497852fde Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 16 Jul 2025 14:27:34 +0200 Subject: 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) --- agent/command-ssh.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3