]> 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 22:57:48 +0000 (22:57 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Mon, 20 Sep 2010 22:57:48 +0000 (22:57 +0000)
commit17d1b17be50e130107cdb5504fbc6f47b9923420
treef8530250a4df170aa80ec5b8e68d2815168e349f
parentf2e8c85dfac10598dfb0b5e9751a1bb124ba5e3d
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:
      bug16057.diff4.txt uploaded by alecdavis (license 585)
Tested by: ramonpeek, davidw, alecdavis

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