diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-25 16:04:46 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-25 16:04:46 +0000 |
commit | 2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3 (patch) | |
tree | dc2b3456d81c35f3b0d8946a0d3fc1091d5c3b32 /plugins | |
parent | 7af2c0a66b03db92a9ca1faae6c37c8fdc666c0e (diff) | |
download | rsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.tar.gz rsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.tar.xz rsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.zip |
moved some of the udp input code to its right place
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imudp/imudp.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |