Fix 222298 (crash during destruction of second channel when variable set with
authorJeff Peeler <jpeeler@digium.com>
Tue, 6 Oct 2009 20:35:19 +0000 (20:35 +0000)
committerJeff Peeler <jpeeler@digium.com>
Tue, 6 Oct 2009 20:35:19 +0000 (20:35 +0000)
commitf7fa41713000f823d48be89fb80ead553ed8f739
treef2091cb2e418f9dc1abbc6eeef12a0850526ba4e
parent2d60b755949c011932c554820e135aa95e154215
Fix 222298 (crash during destruction of second channel when variable set with
setvar).

I mistakenly reasoned that setvar would be used on all channels. Since it can
be set per channel, give each dahdi channel a copy of the variable.

(related to #15899)

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