diff options
-rw-r--r-- | res/res_hep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_hep.c b/res/res_hep.c index f3b65ad26..3b953b7c1 100644 --- a/res/res_hep.c +++ b/res/res_hep.c @@ -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) |