[asterisk-commits] dlee: branch 13 r429457 - /branches/13/res/res_pjsip_outbound_publish.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 12 09:00:42 CST 2014


Author: dlee
Date: Fri Dec 12 09:00:37 2014
New Revision: 429457

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=429457
Log:
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/

Modified:
    branches/13/res/res_pjsip_outbound_publish.c

Modified: branches/13/res/res_pjsip_outbound_publish.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip_outbound_publish.c?view=diff&rev=429457&r1=429456&r2=429457
==============================================================================
--- branches/13/res/res_pjsip_outbound_publish.c (original)
+++ branches/13/res/res_pjsip_outbound_publish.c Fri Dec 12 09:00:37 2014
@@ -1087,6 +1087,8 @@
 
 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");
 




More information about the asterisk-commits mailing list