diff options
| author | 2012-03-20 17:48:45 -0500 | |
|---|---|---|
| committer | 2012-03-20 17:48:45 -0500 | |
| commit | a6a07de0daa353bcd29056a4535a9c4784c113c8 (patch) | |
| tree | 39fd80452dec7e3805d83db1834e3ba9d2f9b28f /src/dns.cpp | |
| parent | m_remove: forbid removing ulined users (diff) | |
| download | inspircd++-a6a07de0daa353bcd29056a4535a9c4784c113c8.tar.gz inspircd++-a6a07de0daa353bcd29056a4535a9c4784c113c8.tar.bz2 inspircd++-a6a07de0daa353bcd29056a4535a9c4784c113c8.zip | |
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; |
