summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--clientloop.c14
2 files changed, 12 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index db05f0beb..01217406f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
4 [sftp.1] 4 [sftp.1]
5 number of pipelined requests is now 64; 5 number of pipelined requests is now 64;
6 prodded by Iain.Morgan AT nasa.gov 6 prodded by Iain.Morgan AT nasa.gov
7 - djm@cvs.openbsd.org 2008/07/16 11:51:14
8 [clientloop.c]
9 rename variable first_gc -> last_gc (since it is actually the last
10 in the list).
7 11
820080714 1220080714
9 - (djm) OpenBSD CVS Sync 13 - (djm) OpenBSD CVS Sync
@@ -4677,4 +4681,4 @@
4677 OpenServer 6 and add osr5bigcrypt support so when someone migrates 4681 OpenServer 6 and add osr5bigcrypt support so when someone migrates
4678 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 4682 passwords between UnixWare and OpenServer they will still work. OK dtucker@
4679 4683
4680$Id: ChangeLog,v 1.5085 2008/07/16 11:17:23 djm Exp $ 4684$Id: ChangeLog,v 1.5086 2008/07/16 12:40:52 djm Exp $
diff --git a/clientloop.c b/clientloop.c
index 5a8727eb9..f10fab769 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.200 2008/07/10 18:08:11 markus Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.201 2008/07/16 11:51:14 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
@@ -741,14 +741,14 @@ client_expect_confirm(int id, const char *request, int do_close)
741void 741void
742client_register_global_confirm(global_confirm_cb *cb, void *ctx) 742client_register_global_confirm(global_confirm_cb *cb, void *ctx)
743{ 743{
744 struct global_confirm *gc, *first_gc; 744 struct global_confirm *gc, *last_gc;
745 745
746 /* Coalesce identical callbacks */ 746 /* Coalesce identical callbacks */
747 first_gc = TAILQ_LAST(&global_confirms, global_confirms); 747 last_gc = TAILQ_LAST(&global_confirms, global_confirms);
748 if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) { 748 if (last_gc && last_gc->cb == cb && last_gc->ctx == ctx) {
749 if (++first_gc->ref_count >= INT_MAX) 749 if (++last_gc->ref_count >= INT_MAX)
750 fatal("%s: first_gc->ref_count = %d", 750 fatal("%s: last_gc->ref_count = %d",
751 __func__, first_gc->ref_count); 751 __func__, last_gc->ref_count);
752 return; 752 return;
753 } 753 }
754 754