summaryrefslogtreecommitdiffstats
path: root/clientloop.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-13 08:56:01 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-06-13 08:56:01 +1000
commitbabc1d5f73dec4d7636d4fefac02e86c2bb69143 (patch)
tree24d5459572e9fa7dbe8487639a0feb4818c74077 /clientloop.c
parenta64ab33f048fd8649c35e1142592d448e0d9eb6a (diff)
- djm@cvs.openbsd.org 2008/06/12 21:06:25
[clientloop.c] I was coalescing expected global request confirmation replies at the wrong end of the queue - fix; prompted by markus@
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientloop.c b/clientloop.c
index 62adbb78..6dc87088 100644
--- a/clientloop.c
+++ b/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
@@ -745,7 +745,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",