summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dns.h b/include/dns.h
index f0ad8dd7a..9d5906d3b 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -159,10 +159,12 @@ class DNS : public Extensible
{
private:
+ static const int MAX_REQUEST_ID = 65535;
+
requestlist requests;
insp_inaddr myserver;
static int MasterSocket;
- Resolver* Classes[65536];
+ Resolver* Classes[MAX_REQUEST_ID];
int MakePayload(const char* name, const QueryType rr, const unsigned short rr_class, unsigned char* payload);
public: