From 9c33d62bcbe1f90d3af1b07e7edfe9f40d6c0d49 Mon Sep 17 00:00:00 2001 From: Richard Mudgett <rmudgett@digium.com> Date: Thu, 9 Feb 2012 02:52:20 +0000 Subject: [PATCH] Fix crash in ParkAndAnnounce. Well, thats embarrasing. I forgot to initialize the caller_id storage. (closes issue ASTERISK-19311) Reported by: tootai Tested by: rmudgett git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@354495 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_parkandannounce.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c index cb11f26d17..5207a7441e 100644 --- a/apps/app_parkandannounce.c +++ b/apps/app_parkandannounce.c @@ -140,6 +140,7 @@ static int parkandannounce_exec(struct ast_channel *chan, const char *data) } /* Save the CallerID because the masquerade turns chan into a ZOMBIE. */ + ast_party_id_init(&caller_id); ast_channel_lock(chan); ast_party_id_copy(&caller_id, &chan->caller.id); ast_channel_unlock(chan);