detect/prefilter: small cleanup

pull/5597/head
Victor Julien 5 years ago
parent bb7f80ef6c
commit ffb0945b4c

@ -103,8 +103,7 @@ void PmqReset(PrefilterRuleStore *pmq)
if (pmq == NULL)
return;
pmq->rule_id_array_cnt = 0;
/* TODO: Realloc the rule id array smaller at some size? */
PMQ_RESET(pmq);
}
/** \brief Cleanup a Pmq

@ -41,6 +41,8 @@ typedef struct PrefilterRuleStore_ {
} PrefilterRuleStore;
#define PMQ_RESET(pmq) (pmq)->rule_id_array_cnt = 0
/* Resize Signature ID array. Only called from MpmAddSids(). */
int PrefilterAddSidsResize(PrefilterRuleStore *pmq, uint32_t new_size);

Loading…
Cancel
Save