mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
fix seg fault when the parked call that timed out was the last one in the list
of parked calls (fixes issue #7565) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1567,7 +1567,7 @@ static void *do_parking_thread(void *ignore)
|
||||
if (ast_context_remove_extension2(con, pt->parkingexten, 1, NULL))
|
||||
ast_log(LOG_WARNING, "Whoa, failed to remove the extension!\n");
|
||||
else
|
||||
notify_metermaids(pu->parkingexten, parking_con);
|
||||
notify_metermaids(pt->parkingexten, parking_con);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Whoa, no parking context?\n");
|
||||
free(pt);
|
||||
|
Reference in New Issue
Block a user