mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
Resolve a crash in SLATrunk when the specified trunk doesn't exist.
Reported by philipp64 in #asterisk-dev. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@252623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5954,7 +5954,6 @@ static int sla_trunk_exec(struct ast_channel *chan, const char *data)
|
|||||||
if (!trunk) {
|
if (!trunk) {
|
||||||
ast_log(LOG_ERROR, "SLA Trunk '%s' not found!\n", args.trunk_name);
|
ast_log(LOG_ERROR, "SLA Trunk '%s' not found!\n", args.trunk_name);
|
||||||
pbx_builtin_setvar_helper(chan, "SLATRUNK_STATUS", "FAILURE");
|
pbx_builtin_setvar_helper(chan, "SLATRUNK_STATUS", "FAILURE");
|
||||||
ast_atomic_fetchadd_int((int *) &trunk->ref_count, -1);
|
|
||||||
sla_queue_event(SLA_EVENT_CHECK_RELOAD);
|
sla_queue_event(SLA_EVENT_CHECK_RELOAD);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user