Merged revisions 308903 via svnmerge from
authorRichard Mudgett <rmudgett@digium.com>
Thu, 24 Feb 2011 21:43:32 +0000 (21:43 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 24 Feb 2011 21:43:32 +0000 (21:43 +0000)
commit642d6c306c8e9146bf85c3080ec9af4bef3fd011
tree08fe95d4c8a9d6dd2b3e289509f7cfd5eb7a7711
parentf88ef55d748a995a7d7aba10d3a84252c1d6dafe
Merged revisions 308903 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r308903 | rmudgett | 2011-02-24 15:38:41 -0600 (Thu, 24 Feb 2011) | 9 lines

  Invalid read in ast_channel_set_caller_event().

  Valgrind reported that ast_channel_set_caller_event() was reading data
  from a freed buffer when using the pre_set structure.

  Rearange things to pre-calculate the name and number pointer before
  updating the caller party structure to see if the name or number was
  changed.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@308904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c