diff options
author | David M. Lee <dlee@digium.com> | 2014-12-12 15:00:37 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2014-12-12 15:00:37 +0000 |
commit | 49386cf5680d2348d3511e2a68d41bd1cdfdd4d4 (patch) | |
tree | 9123be9a1fb673eecec5c21e39a8e04523c39540 /res/res_pjsip_outbound_publish.c | |
parent | 3b0c40f337deb199dab49f91ea1c73f805df0cb1 (diff) |
Fix crash for sorcery misconfigs
res_pjsip_outbound_publish was missing the CHECK_PJSIP_MODULE_LOADED()
call in load_module, and would crash with a segfault if res_pjsip
declined to load.
Review: https://reviewboard.asterisk.org/r/4258/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@429457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_outbound_publish.c')
-rw-r--r-- | res/res_pjsip_outbound_publish.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_pjsip_outbound_publish.c b/res/res_pjsip_outbound_publish.c index 323324d60..c79e42847 100644 --- a/res/res_pjsip_outbound_publish.c +++ b/res/res_pjsip_outbound_publish.c @@ -1087,6 +1087,8 @@ static int outbound_auth_handler(const struct aco_option *opt, struct ast_variab static int load_module(void) { + CHECK_PJSIP_MODULE_LOADED(); + ast_sorcery_apply_config(ast_sip_get_sorcery(), "res_pjsip_outbound_publish"); ast_sorcery_apply_default(ast_sip_get_sorcery(), "outbound-publish", "config", "pjsip.conf,criteria=type=outbound-publish"); |