--- libaitsess/src/Attic/mem.c 2012/02/28 00:13:26 1.1.2.4 +++ libaitsess/src/Attic/mem.c 2012/02/28 00:25:25 1.1.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: mem.c,v 1.1.2.4 2012/02/28 00:13:26 misho Exp $ +* $Id: mem.c,v 1.1.2.5 2012/02/28 00:25:25 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -298,7 +298,7 @@ mpool_free(mpool_t * __restrict mp, void * __restrict sess_SetErr(EFAULT, "Corrupted memory address"); return -2; } else - idx = BucketIndex(((u_int*)data)[-2]); + idx = BucketIndex(((u_int*)data)[-2] * sizeof(u_int)); mpool_lock(mp); TAILQ_FOREACH(m, &mp->pool_active[idx], alloc_node)