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

(accept_async): Removed redundant code. (Bug 166).

parent e50d5e64
/*
* $Id: session.c,v 0.59 2001/11/06 21:39:09 ceder Exp $
* $Id: session.c,v 0.60 2001/11/15 22:54:47 ceder Exp $
* Copyright (C) 1991-1994, 1996-2000 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -929,15 +929,9 @@ accept_async(Number_list *num_list)
result = OK;
/*
* Check agains maliciously long arrays
* Check against maliciously long arrays.
*/
/* FIXME (bug 166): The following test only needs one branch
depending on which implementation of prot_a_parse_num_list we
go with. */
if (num_list->length > param.accept_async_len ||
(num_list->data == NULL && num_list->length > 0))
if (num_list->length > param.accept_async_len)
{
err_stat = 0;
kom_errno = KOM_LONG_ARRAY;
......
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