Fixed segfault on core stop gracefully.
authorDamien Wedhorn <voip@facts.com.au>
Thu, 6 Oct 2011 20:18:45 +0000 (20:18 +0000)
committerDamien Wedhorn <voip@facts.com.au>
Thu, 6 Oct 2011 20:18:45 +0000 (20:18 +0000)
commitd59bb319fc4769fa64771562f3a34bbbfc9d75bc
tree28082f6891cf05c8d33775e251cb0be8d6a8551b
parent2f82296096782a378214f23f3925ba132953e1aa
Fixed segfault on core stop gracefully.

There was an issue that the cap and confcap pointers for each line and device
were being memcpy'd so they all pointed to the same ast_format_cap. On
destroying, a segfault occured on the second call to the same struct.

skinny reload now works again as well.

Tested by snuff and myself.

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