summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_audiohookinherit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/funcs/func_audiohookinherit.c b/funcs/func_audiohookinherit.c
index f3a5b6189..ea5c5e9ab 100644
--- a/funcs/func_audiohookinherit.c
+++ b/funcs/func_audiohookinherit.c
@@ -228,6 +228,11 @@ static int func_inheritance_write(struct ast_channel *chan, const char *function
return -1;
}
+ if (!chan) {
+ ast_log(LOG_WARNING, "No channel was provided to INHERITANCE function.\n");
+ return -1;
+ }
+
allow = ast_true(value);
/* Step 2: retrieve or set up datastore */