]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Bugfix
authorhades <hades>
Tue, 16 Nov 1999 11:14:02 +0000 (11:14 +0000)
committerhades <hades>
Tue, 16 Nov 1999 11:14:02 +0000 (11:14 +0000)
hadaq/nettrans.c

index 4f5043dbcbaf5c3eeff6a20d0f94176d8609cf4b..e3273315acf03e3c9f577ace19d88f5f61a05ab1 100644 (file)
@@ -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 <unistd.h>
@@ -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