Don't crash when destroying chan_dahdi pseudo channels.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 12 May 2010 17:57:31 +0000 (17:57 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 12 May 2010 17:57:31 +0000 (17:57 +0000)
commit093dbfdd522bd0ca0c4b07c4f07e9ebdd6b8be21
tree8209cb852007c29350dee1d05e0606e001183f02
parente2336b73ef5f72dfd462054baa99366113d59af6
Don't crash when destroying chan_dahdi pseudo channels.

Must do a deep copy of the cc_params in duplicate_pseudo().  Otherwise,
when the duplicate pseudo channel is destroyed, it frees the original
pseudo channel cc_params.  The original pseudo channel is then left with a
dangling pointer for when the next duplicated pseudo channel is created.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@262743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c