Index: sshconnect2.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sshconnect2.c,v
retrieving revision 1.138
diff -u -r1.138 sshconnect2.c
--- sshconnect2.c 13 Jun 2004 12:53:24 -0000 1.138
+++ sshconnect2.c 9 Mar 2005 03:26:47 -0000
@@ -457,7 +457,7 @@
* moved to the end of the queue. this also avoids confusion by
* duplicate keys
*/
- TAILQ_FOREACH_REVERSE(id, &authctxt->keys, idlist, next) {
+ TAILQ_FOREACH_REVERSE(id, &authctxt->keys, next, idlist) {
if (key_equal(key, id->key)) {
sent = sign_and_send_pubkey(authctxt, id);
break;