--- libaitsess/src/sess.c 2011/09/07 21:37:23 1.3.2.4 +++ libaitsess/src/sess.c 2011/09/08 07:02:22 1.3.2.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: sess.c,v 1.3.2.4 2011/09/07 21:37:23 misho Exp $ +* $Id: sess.c,v 1.3.2.6 2011/09/08 07:02:22 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -408,12 +408,9 @@ sess_commitSession(tagSess * __restrict s, array_t * _ return -1; } - if (!s->zcopy) - ATTACH_MEMORY(s); + ATTACH_MEMORY(s); if (!s->addr) { - if (!s->zcopy) - DETACH_MEMORY(s); - + DETACH_MEMORY(s); return -1; } else hdr = (sess_hdr_t*) s->addr; @@ -426,7 +423,6 @@ sess_commitSession(tagSess * __restrict s, array_t * _ } ADD_SEMAPHORE(s, rs); - if (!s->zcopy) - DETACH_MEMORY(s); + DETACH_MEMORY(s); return ret; }