summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/clientloop.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2008-06-12 21:06:25 +0000
committerdjm <djm@openbsd.org>2008-06-12 21:06:25 +0000
commitd775aa2d837419c0f93e4663a36d66b04083c457 (patch)
treef259c56a6c34da0f79ee6a039f35de5451eff5e7 /usr.bin/ssh/clientloop.c
parentprint extension revisions for extensions that we understand (diff)
downloadwireguard-openbsd-d775aa2d837419c0f93e4663a36d66b04083c457.tar.xz
wireguard-openbsd-d775aa2d837419c0f93e4663a36d66b04083c457.zip
I was coalescing expected global request confirmation replies at the
wrong end of the queue - fix; prompted by markus@
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r--usr.bin/ssh/clientloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index 1d73a0f529c..bb6c1d2f1b5 100644
--- a/usr.bin/ssh/clientloop.c
+++ b/usr.bin/ssh/clientloop.c
@@ -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 <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -737,7 +737,7 @@ client_register_global_confirm(global_confirm_cb *cb, void *ctx)
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",