summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-25 16:04:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-25 16:04:46 +0000
commit2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3 (patch)
treedc2b3456d81c35f3b0d8946a0d3fc1091d5c3b32 /net.c
parent7af2c0a66b03db92a9ca1faae6c37c8fdc666c0e (diff)
downloadrsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.tar.gz
rsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.tar.xz
rsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.zip
moved some of the udp input code to its right place
Diffstat (limited to 'net.c')
-rw-r--r--net.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net.c b/net.c
index 94b242e3..7b52bb98 100644
--- a/net.c
+++ b/net.c
@@ -137,8 +137,12 @@ static rsRetVal AddAllowedSenderEntry(struct AllowedSenders **ppRoot, struct All
/* function to clear the allowed sender structure in cases where
* it must be freed (occurs most often when HUPed.
* TODO: reconsider recursive implementation
+ * I think there is also a memory leak, because only the last entry
+ * is acutally deleted... -- rgerhards, 2007-12-25
*/
-void clearAllowedSenders (struct AllowedSenders *pAllow) {
+void clearAllowedSenders (struct AllowedSenders *pAllow)
+{
+dbgprintf("clearAllowedSenders(0x%lx)\n", (unsigned long) pAllow);
if (pAllow != NULL) {
if (pAllow->pNext != NULL)
clearAllowedSenders (pAllow->pNext);
@@ -840,6 +844,7 @@ void closeUDPListenSockets()
{
register int i;
+dbgprintf("in closeUDPListenSockets()\n");
if(finet != NULL) {
for (i = 0; i < *finet; i++)
close(finet[i+1]);