From: hades Date: Tue, 16 Nov 1999 11:14:02 +0000 (+0000) Subject: Bugfix X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e1cf4bb919e56717db2ed5c85d1b8c129e6c3219;p=daqdata.git Bugfix --- diff --git a/hadaq/nettrans.c b/hadaq/nettrans.c index 4f5043d..e327331 100644 --- a/hadaq/nettrans.c +++ b/hadaq/nettrans.c @@ -1,4 +1,4 @@ -static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.4 1999-11-15 16:30:00 hades Exp $"; +static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.5 1999-11-16 11:14:02 hades Exp $"; #define _XOPEN_SOURCE_EXTENDED #include @@ -305,11 +305,13 @@ static int assembleMsg(NetTrans *my, void *hadTu, size_t size) /* the parent functions this should be handled, but this would need */ /* better sunc. between nettrans & shmtrans */ if (hadTu == NULL) { + my->pkt = allocMem(my->mtuSize); if (0 > recvGeneric(my)) { abort(); } my->offset = 0; (*my->pktsDiscarded)++; + freeMem(my->pkt); return 0; } /* for in situ assembly of the pkts we receive the data "a little bit in