1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

fixed little bug from Doug

This commit is contained in:
fyodor
2006-01-11 01:58:43 +00:00
parent 90c5321d81
commit 512ac415ba

View File

@@ -558,7 +558,7 @@ void read_evt_handler(nsock_pool nsp, nsock_event evt, void *nothing) {
if (ia.s_addr == 0) return; if (ia.s_addr == 0) return;
curbuf = advance_past_dns_name(buf, buflen, curbuf, &nameloc); curbuf = advance_past_dns_name(buf, buflen, curbuf, &nameloc);
if (curbuf == -1 || curbuf >= buflen) return; if (curbuf == -1 || curbuf > buflen) return;
if (encoded_name_to_normal(buf+nameloc, outbuf, sizeof(outbuf)) == -1) return; if (encoded_name_to_normal(buf+nameloc, outbuf, sizeof(outbuf)) == -1) return;