diff options
author | David M. Lee <dlee@digium.com> | 2013-03-08 16:25:58 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-03-08 16:25:58 +0000 |
commit | c0e2ed1fe9f61f5b6d6c7de06c388e8d5a11563f (patch) | |
tree | 8cfcfef7027619c498a7459e1f4dce11bcced7c9 /main/stasis.c | |
parent | c6b06e40dc859125cf76bec4632bd76de42256bd (diff) |
Ensure dummy channels get a stasis topic.
Fixes test failure introduced in r382685.
(issue ASTERISK-20887)
(issue ASTERISK-20959)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/stasis.c')
-rw-r--r-- | main/stasis.c | 4 |
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); |