From 55db12472f1cc7034a82932f271c94e4e61bc3dd 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: 2469dc5aae671247100339493ad7919919a02db9 --- agent/command-ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 6b872f1fa..9de88dc44 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -2769,6 +2769,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