--- libaitsess/src/sess.c 2011/09/07 16:08:41 1.3.2.2 +++ libaitsess/src/sess.c 2011/09/07 21:06:56 1.3.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: sess.c,v 1.3.2.2 2011/09/07 16:08:41 misho Exp $ +* $Id: sess.c,v 1.3.2.3 2011/09/07 21:06:56 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -413,16 +413,10 @@ sess_commitSession(tagSess * __restrict s, array_t * _ return -1; } else hdr = (sess_hdr_t*) s->addr; - if (hdr->hdr_magic != SESS_AIT_MAGIC) { - if (!s->zcopy) - DETACH_MEMORY(s); - sess_SetErr(EINVAL, "Error:: shared memory not contains values with proper format\n"); - return -1; - } - DEC_SEMAPHORE(s, rs); if ((ret = io_vals2map(s->addr + sizeof(sess_hdr_t), s->eom - sizeof(sess_hdr_t), arr)) != -1) { + hdr->hdr_magic = SESS_AIT_MAGIC; hdr->hdr_argc = io_arraySize(arr); ret += sizeof(sess_hdr_t); }