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 --- net.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net.c') 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]); -- cgit v1.2.3