From 2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 25 Dec 2007 16:04:46 +0000 Subject: moved some of the udp input code to its right place --- plugins/imudp/imudp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index ed18ddf1..367258ca 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -106,7 +106,6 @@ CODESTARTrunInput for (i = 0; nfds && i < *finet; i++) { if (FD_ISSET(finet[i+1], &readfds)) { socklen = sizeof(frominet); - memset(line, 0xff, sizeof(line)); // TODO: I think we need this for debug only - remove after bug hunt l = recvfrom(finet[i+1], line, MAXLINE - 1, 0, (struct sockaddr *)&frominet, &socklen); if (l > 0) { @@ -158,6 +157,11 @@ ENDwillRun BEGINafterRun CODESTARTafterRun /* do cleanup here */ +dbgprintf("call clearAllowedSenders(0x%lx)\n", (unsigned long) pAllowedSenders_UDP); + if (pAllowedSenders_UDP != NULL) { + clearAllowedSenders (pAllowedSenders_UDP); + pAllowedSenders_UDP = NULL; + } ENDafterRun -- cgit