Commit f58f660a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(fparse_read_range_0): Handle the errors introduced by bug 1121. Log

	an error message if any damage was repaired.
parent f1673426
/* /*
* $Id: ram-parse.c,v 0.57 2003/08/28 10:11:21 ceder Exp $ * $Id: ram-parse.c,v 0.58 2003/08/28 23:11:02 ceder Exp $
* Copyright (C) 1991, 1993-1999, 2001-2003 Lysator Academic Computer Association. * Copyright (C) 1991, 1993-1999, 2001-2003 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -504,7 +504,13 @@ fparse_read_range_0(FILE *fp, ...@@ -504,7 +504,13 @@ fparse_read_range_0(FILE *fp,
for (i = 0; i < no_of_read; i++) for (i = 0; i < no_of_read; i++)
{ {
tmp = fparse_long(fp); tmp = fparse_long(fp);
if (tail != NULL && tmp == tail->last_read + 1) if (tail != NULL && tmp <= tail->last_read)
{
kom_log("fparse_read_range_0: discarded out-of-order"
" local number %lu probably introduced by"
" bug 1121\n", (unsigned long)tmp);
}
else if (tail != NULL && tmp == tail->last_read + 1)
tail->last_read = tmp; tail->last_read = tmp;
else else
{ {
......
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