mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Remove some constant-false conditionals and dead code. See #1834
This commit is contained in:
parent
69f1576c17
commit
61d77a2165
2 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@
|
|||
|
||||
|
||||
static gh_hnode_t **hnode_ptr(gh_heap_t *heap, unsigned int index) {
|
||||
assert(index >= 0);
|
||||
assert(index <= heap->count);
|
||||
return &(heap->slots[index]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue