diff options
author | William Pitcock <nenolod@dereferenced.org> | 2012-03-20 17:48:45 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2012-03-20 17:48:45 -0500 |
commit | a6a07de0daa353bcd29056a4535a9c4784c113c8 (patch) | |
tree | 39fd80452dec7e3805d83db1834e3ba9d2f9b28f /src/dns.cpp | |
parent | eba7e6655a21c752912995aa04355f0df112f8e5 (diff) |
dns: iterators which are integer should always be unsigned, else an integer underflow is possible.
Signed-off-by: William Pitcock <nenolod@dereferenced.org>
Diffstat (limited to 'src/dns.cpp')
-rw-r--r-- | src/dns.cpp | 2 |
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; |