Don't delete original variables after appending clone ones
authorMark Spencer <markster@digium.com>
Sat, 31 Jan 2004 02:50:27 +0000 (02:50 +0000)
committerMark Spencer <markster@digium.com>
Sat, 31 Jan 2004 02:50:27 +0000 (02:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2098 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 9e64955..ee971f8 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -2049,7 +2049,6 @@ static int ast_do_masquerade(struct ast_channel *original)
                original->varshead.first = clone->varshead.first;
        }
        clone->varshead.first = NULL;
-       original->varshead.first = clone->varshead.first;
        /* Presense of ADSI capable CPE follows clone */
        original->adsicpe = clone->adsicpe;
        /* Bridge remains the same */