summaryrefslogtreecommitdiff
path: root/main/stasis.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/stasis.c')
-rw-r--r--main/stasis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/stasis.c b/main/stasis.c
index f94736bf1..d1f11537e 100644
--- a/main/stasis.c
+++ b/main/stasis.c
@@ -337,6 +337,10 @@ void stasis_forward_message(struct stasis_topic *topic, struct stasis_topic *pub
struct stasis_subscription **subscribers = NULL;
size_t num_subscribers, i;
+ ast_assert(topic != NULL);
+ ast_assert(publisher_topic != NULL);
+ ast_assert(message != NULL);
+
/* Copy the subscribers, so we don't have to hold the mutex for long */
{
SCOPED_AO2LOCK(lock, topic);