summaryrefslogtreecommitdiffstats
path: root/runtime/nsd_ptcp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-06-07 10:01:48 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-06-07 10:01:48 +0200
commitddad5b3299191142f500b25e01b827e40e873cd7 (patch)
tree082bfe7f57bc7abfbca0e73dabced4b83b38c0a9 /runtime/nsd_ptcp.c
parent2b9e5ac193ea91817ff17851a4a16a42a5b87fdb (diff)
downloadrsyslog-ddad5b3299191142f500b25e01b827e40e873cd7.tar.gz
rsyslog-ddad5b3299191142f500b25e01b827e40e873cd7.tar.xz
rsyslog-ddad5b3299191142f500b25e01b827e40e873cd7.zip
added upper limit on # of dns cache entries to prevent DoS
Diffstat (limited to 'runtime/nsd_ptcp.c')
-rw-r--r--runtime/nsd_ptcp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/nsd_ptcp.c b/runtime/nsd_ptcp.c
index 7dd489e9..06f62b7e 100644
--- a/runtime/nsd_ptcp.c
+++ b/runtime/nsd_ptcp.c
@@ -251,10 +251,8 @@ Abort(nsd_t *pNsd)
static rsRetVal
FillRemHost(nsd_ptcp_t *pThis, struct sockaddr *pAddr)
{
- int error;
uchar szIP[NI_MAXHOST] = "";
uchar szHname[NI_MAXHOST] = "";
- struct addrinfo hints, *res;
size_t len;
DEFiRet;