summaryrefslogtreecommitdiff
path: root/res/res_hep.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_hep.c')
-rw-r--r--res/res_hep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_hep.c b/res/res_hep.c
index f3b65ad26..a91b7ec77 100644
--- a/res/res_hep.c
+++ b/res/res_hep.c
@@ -260,8 +260,8 @@ static struct aco_type global_option = {
.type = ACO_GLOBAL,
.name = "general",
.item_offset = offsetof(struct module_config, general),
- .category_match = ACO_WHITELIST,
- .category = "^general$",
+ .category_match = ACO_WHITELIST_EXACT,
+ .category = "general",
};
struct aco_type *global_options[] = ACO_TYPES(&global_option);
@@ -423,7 +423,7 @@ int hepv3_is_loaded(void)
{
RAII_VAR(struct module_config *, config, ao2_global_obj_ref(global_config), ao2_cleanup);
- return (config != NULL) ? 1 : 0;
+ return config && config->general->enabled;
}
struct hepv3_capture_info *hepv3_create_capture_info(const void *payload, size_t len)