summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
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 62adbb78e..6dc870881 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.198 2008/06/12 15:19:17 djm Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.199 2008/06/12 21:06:25 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * 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)
745 struct global_confirm *gc, *first_gc; 745 struct global_confirm *gc, *first_gc;
746 746
747 /* Coalesce identical callbacks */ 747 /* Coalesce identical callbacks */
748 first_gc = TAILQ_FIRST(&global_confirms); 748 first_gc = TAILQ_LAST(&global_confirms, global_confirms);
749 if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) { 749 if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) {
750 if (++first_gc->ref_count >= INT_MAX) 750 if (++first_gc->ref_count >= INT_MAX)
751 fatal("%s: first_gc->ref_count = %d", 751 fatal("%s: first_gc->ref_count = %d",