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

Remove some constant-false conditionals and dead code. See #1834

This commit is contained in:
dmiller
2019-12-22 21:50:54 +00:00
parent 69f1576c17
commit 61d77a2165
2 changed files with 0 additions and 3 deletions

View File

@@ -706,8 +706,6 @@ const char *FPEngine::bpf_filter(std::vector<Target *> &Targets) {
fatal("ran out of space in dst_hosts");
filterlen += len;
}
if (len < 0 || len + filterlen >= (int) sizeof(dst_hosts))
fatal("ran out of space in dst_hosts");
len = Snprintf(pcap_filter, sizeof(pcap_filter), "dst host %s and (%s)",
Targets[0]->sourceipstr(), dst_hosts);