]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ast_channel_masquerade: Avoid recursive masquerades.
authorAlec L Davis <sivad.a@paradise.net.nz>
Mon, 20 Sep 2010 23:16:45 +0000 (23:16 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Mon, 20 Sep 2010 23:16:45 +0000 (23:16 +0000)
commit845f142cfbad3181724d0023f88a70dd76a1bd43
tree66c5d2a7c112e45348785faa23b4974dec7cf8dd
parent3d224c4c11c1aa4410e14fbfd1497a66fb8fde2d
ast_channel_masquerade: Avoid recursive masquerades.

Check all 4 combinations of (original/clonechan) * (masq/masqr).

Initially original->masq and clonechan->masqr were only checked.

It's possible with multiple masq's planned - and not yet executed, that
 the 'original' chan could already have another masq'd into it - thus original->masqr
would be set, that masqr would lost.
Likewise for the clonechan->masq.

(closes issue #16057;#17363)
Reported by: amorsen;davidw,alecdavis
Patches:
      based on bug16057.diff4.txt uploaded by alecdavis (license 585)
Tested by: ramonpeek, davidw, alecdavis

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