Commit 5cadc606 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

connections.c (add_to_kill_list): Fixed a bug that caused some false

warnings in the log file.
parent 1a92c29f
/*
* $Id: connections.c,v 0.22 1993/01/16 23:16:13 ceder Exp $
* $Id: connections.c,v 0.23 1993/02/21 16:36:19 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -30,7 +30,7 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
static char *rcsid = "$Id: connections.c,v 0.22 1993/01/16 23:16:13 ceder Exp $";
static char *rcsid = "$Id: connections.c,v 0.23 1993/02/21 16:36:19 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -644,7 +644,7 @@ add_to_kill_list(Connection *conn)
int i;
for (i = 0; i < kill_list_size; i++)
if (kill_list[kill_list_size] == conn->session_no)
if (kill_list[i] == conn->session_no)
{
log("add_to_kill_list(%d): already present as %d of %d.\n",
conn->session_no, i, kill_list_size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment