From ddad5b3299191142f500b25e01b827e40e873cd7 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 7 Jun 2011 10:01:48 +0200 Subject: added upper limit on # of dns cache entries to prevent DoS --- runtime/nsd_ptcp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'runtime/nsd_ptcp.c') 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; -- cgit v1.2.3