summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-12-14 19:55:03 -0500
committerSean Bright <sean.bright@gmail.com>2017-12-14 19:55:28 -0500
commit8338f3ec14cbb7381c312d715330a862d5c2a007 (patch)
tree32748cde8449e667db71355f50c1f8ccfe0e54df
parent7377927b18118fcf5307e565daa3cb8dd819e26e (diff)
res_hep: hepv3_is_loaded() should check if we are enabled
res_hep_pjsip.so and res_hep_rtcp.so will still load and do a lot of unnecessary work even if 'enabled' is set to 'no' in hep.conf. Change-Id: I3eddfeea09c6b5bc7c641952ee0ae487fd09b64b
-rw-r--r--res/res_hep.c2
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)