From 871f57cb63ca864e98084ccb434418d7cfd40f92 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 29 Jan 2009 20:13:12 +0000 Subject: [PATCH] Ugh. Another inner loop variable reuse bug. --- server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.c b/server.c index b8266e42..02694d28 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.115 2009-01-28 19:52:21 nicm Exp $ */ +/* $Id: server.c,v 1.116 2009-01-29 20:13:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -337,12 +337,12 @@ server_shutdown(void) { struct session *s; struct client *c; - u_int i; + u_int i, j; for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s = ARRAY_ITEM(&sessions, i); - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - c = ARRAY_ITEM(&clients, i); + for (j = 0; j < ARRAY_LENGTH(&clients); j++) { + c = ARRAY_ITEM(&clients, j); if (c != NULL && c->session == s) { s = NULL; break;