mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip_pubsub.c: Add missing error return in load_module().
Change-Id: I15debd0f717f16ee2f78e7f56151c3b3b97b72fc
This commit is contained in:
@@ -4270,6 +4270,7 @@ static int load_module(void)
|
|||||||
if (apply_list_configuration(sorcery)) {
|
if (apply_list_configuration(sorcery)) {
|
||||||
ast_sip_unregister_service(&pubsub_module);
|
ast_sip_unregister_service(&pubsub_module);
|
||||||
ast_sched_context_destroy(sched);
|
ast_sched_context_destroy(sched);
|
||||||
|
return AST_MODULE_LOAD_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_sorcery_apply_default(sorcery, "inbound-publication", "config", "pjsip.conf,criteria=type=inbound-publication");
|
ast_sorcery_apply_default(sorcery, "inbound-publication", "config", "pjsip.conf,criteria=type=inbound-publication");
|
||||||
|
Reference in New Issue
Block a user