From c83caa1ae0033f53e8e51f98415a48f69fb0b349 Mon Sep 17 00:00:00 2001 From: tilghman Date: Sun, 27 Jan 2008 22:35:29 +0000 Subject: Merged revisions 100465 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r100465 | tilghman | 2008-01-27 15:59:53 -0600 (Sun, 27 Jan 2008) | 11 lines When deleting a task from the scheduler, ignoring the return value could possibly cause memory to be accessed after it is freed, which causes all sorts of random memory corruption. Instead, if a deletion fails, wait a bit and try again (noting that another thread could change our taskid value). (closes issue #11386) Reported by: flujan Patches: 20080124__bug11386.diff.txt uploaded by Corydon76 (license 14) Tested by: Corydon76, flujan, stuarth` ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@100488 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_misdn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels/chan_misdn.c') diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index a0153ef4d..ca3918620 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -652,7 +652,7 @@ static int misdn_tasks_add_variable (int timeout, ast_sched_cb callback, const v static void misdn_tasks_remove (int task_id) { - ast_sched_del(misdn_tasks, task_id); + AST_SCHED_DEL(misdn_tasks, task_id); } static int misdn_l1_task (const void *data) -- cgit v1.2.3