diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-20 22:13:34 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-20 22:13:34 +0000 |
commit | 834f9755882564a0146ac71ea932ba33b5b2fc56 (patch) | |
tree | 8963be3747c107ec6bda6d3c24a25e910c202366 /apps/app_directed_pickup.c | |
parent | 32577ff93ff69c1b452f047b09f47fae1d911f84 (diff) |
Initialize connected line instance when doing a directed pickup.
This helps to prevent a crash which may occur due to our freeing
garbage due to a struct being uninitialized.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207522 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directed_pickup.c')
-rw-r--r-- | apps/app_directed_pickup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index 9301395c8..a43d4251a 100644 --- a/apps/app_directed_pickup.c +++ b/apps/app_directed_pickup.c @@ -98,6 +98,7 @@ static int pickup_do(struct ast_channel *chan, struct ast_channel *target) ast_debug(1, "Call pickup on '%s' by '%s'\n", target->name, chan->name); ast_cel_report_event(target, AST_CEL_PICKUP, NULL, NULL, chan); + ast_party_connected_line_init(&connected_caller); connected_caller = target->connected; connected_caller.source = AST_CONNECTED_LINE_UPDATE_SOURCE_ANSWER; if (ast_channel_connected_line_macro(NULL, chan, &connected_caller, 0, 0)) { |