diff options
author | Matt Jordan <mjordan@digium.com> | 2015-11-04 14:31:28 -0600 |
---|---|---|
committer | Matt Jordan <mjordan@digium.com> | 2015-11-04 14:31:28 -0600 |
commit | 506aea26e6c67cd53874aa3ffef278524dfd7878 (patch) | |
tree | 82da4afdd5bc00c7e0210224d0d008bd32c7cf35 /main/app.c | |
parent | d098d00424a3c7ae2c2b2b26ce31d0889c506478 (diff) |
main/dial: Protect access to the format_cap structure of the requesting channel
When a dial attempt is made that involves a requesting channel, we previously
were not:
a) Protecting access to the native format capabilities structure on the
requesting channel. That is inherently unsafe.
b) Reference bumping the lifetime of the format capabilities structure.
In both cases, something else could sneak in, blow away the format
capabilities, and we'd be holding onto an invalid format_cap structure. When
the newly created channel attempts to construct its format capabilities, things
go poorly.
This patch:
a) Ensures that we get a reference to the native format capabilities while
the requesting channel is locked
b) Holds a reference to the native format capabilities during the creation
of the new channel.
ASTERISK-25522 #close
Change-Id: I0bfb7ba8b9711f4158cbeaae96edf9626e88a54f
Diffstat (limited to 'main/app.c')
0 files changed, 0 insertions, 0 deletions