-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.38 2005-05-02 13:58:36 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.39 2007-07-05 15:56:58 hadaq Exp $";
#define _GNU_SOURCE
static int openUdp(NetTrans *my, unsigned long addr, int port, int fl)
{
- int retVal;
+/* retVal needs some positive initialization otherwise */
+/* it can get a random negative number and cause an error! */
+/* S.Y. 05.07.2007 */
+ int retVal = 1363391884;
assert(my != NULL);
} else {
retVal = -1;
}
+
my->mtuSize = 15 * 1024;
if (0 > retVal) {
syslog(LOG_DEBUG, "openUdp: %s", strerror(errno));
}
+
return retVal;
}