diff --git a/FPEngine.cc b/FPEngine.cc index 90bdd98d6..af0d5d2cc 100644 --- a/FPEngine.cc +++ b/FPEngine.cc @@ -706,8 +706,6 @@ const char *FPEngine::bpf_filter(std::vector &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); diff --git a/nsock/src/gh_heap.c b/nsock/src/gh_heap.c index 4ff6db8f1..a9b7743e8 100644 --- a/nsock/src/gh_heap.c +++ b/nsock/src/gh_heap.c @@ -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]); }