From a6a07de0daa353bcd29056a4535a9c4784c113c8 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 20 Mar 2012 17:48:45 -0500 Subject: dns: iterators which are integer should always be unsigned, else an integer underflow is possible. Signed-off-by: William Pitcock --- src/dns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3