=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/clientloop.c,v retrieving revision 1.198 retrieving revision 1.199 diff -u -r1.198 -r1.199 --- src/usr.bin/ssh/clientloop.c 2008/06/12 15:19:17 1.198 +++ src/usr.bin/ssh/clientloop.c 2008/06/12 21:06:25 1.199 @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.198 2008/06/12 15:19:17 djm Exp $ */ +/* $OpenBSD: clientloop.c,v 1.199 2008/06/12 21:06:25 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -737,7 +737,7 @@ struct global_confirm *gc, *first_gc; /* Coalesce identical callbacks */ - first_gc = TAILQ_FIRST(&global_confirms); + first_gc = TAILQ_LAST(&global_confirms, global_confirms); if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) { if (++first_gc->ref_count >= INT_MAX) fatal("%s: first_gc->ref_count = %d",