[Bug 684] ssh cannot access keys stored in agent

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Sep 21 00:36:25 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=684





------- Additional Comments From markus at openbsd.org  2003-09-21 00:36 -------
this should work, but i don't know how
portable TAILQ_FOREACH_REVERSE IS:

Index: sshconnect2.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sshconnect2.c,v
retrieving revision 1.124
diff -u -r1.124 sshconnect2.c
--- sshconnect2.c       25 Aug 2003 10:33:33 -0000      1.124
+++ sshconnect2.c       20 Sep 2003 14:25:30 -0000
@@ -445,7 +445,7 @@
        debug2("input_userauth_pk_ok: fp %s", fp);
        xfree(fp);
 
-       TAILQ_FOREACH(id, &authctxt->keys, next) {
+       TAILQ_FOREACH_REVERSE(id, &authctxt->keys, next, idlist) {
                if (key_equal(key, id->key)) {
                        sent = sign_and_send_pubkey(authctxt, id);
                        break;
folly% 


#define TAILQ_FOREACH_REVERSE(var, head, field, headname)               \
        for((var) = TAILQ_LAST(head, headname);                         \
            (var) != TAILQ_END(head);                                   \
            (var) = TAILQ_PREV(var, headname, field))





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list