--- libelwix/src/vars.c 2013/03/07 16:24:32 1.2 +++ libelwix/src/vars.c 2013/03/07 23:04:48 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: vars.c,v 1.2 2013/03/07 16:24:32 misho Exp $ +* $Id: vars.c,v 1.3 2013/03/07 23:04:48 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -222,16 +222,6 @@ buffer2vars(u_char * __restrict buf, int buflen, int v val->val_type = buffer; case buffer: case string: - if (AIT_LEN(val) > buflen - Limit) { - elwix_SetErr(EMSGSIZE, "Short buffer buflen=%d " - "needed min %d", buflen, Limit + AIT_LEN(val)); - if (!zcpy) - array_Free(vars); - array_Destroy(&vars); - return NULL; - } else - Limit += AIT_LEN(val); - if (!zcpy) { val->val.buffer = e_malloc(AIT_LEN(val)); if (!val->val.buffer) {