summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 80863d332..474e15d6a 100644
--- a/res/res_hep.c
+++ b/res/res_hep.c
@@ -532,7 +532,7 @@ int hepv3_send_packet(struct hepv3_capture_info *capture_info)
RAII_VAR(struct module_config *, config, ao2_global_obj_ref(global_config), ao2_cleanup);
int res;
- if (!config->general->enabled) {
+ if (!config || !config->general->enabled) {
return 0;
}