summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-03-20 17:48:45 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2012-03-20 17:48:45 -0500
commita6a07de0daa353bcd29056a4535a9c4784c113c8 (patch)
tree39fd80452dec7e3805d83db1834e3ba9d2f9b28f
parenteba7e6655a21c752912995aa04355f0df112f8e5 (diff)
dns: iterators which are integer should always be unsigned, else an integer underflow is possible.
Signed-off-by: William Pitcock <nenolod@dereferenced.org>
-rw-r--r--src/dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 945e1fb15..abdd0a54c 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -690,7 +690,7 @@ DNSResult DNS::GetResult()
/** A result is ready, process it */
DNSInfo DNSRequest::ResultIsReady(DNSHeader &header, int length)
{
- int i = 0;
+ unsigned i = 0;
int q = 0;
int curanswer, o;
ResourceRecord rr;