summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-11-04 14:31:28 -0600
committerMatt Jordan <mjordan@digium.com>2015-11-04 14:31:28 -0600
commit506aea26e6c67cd53874aa3ffef278524dfd7878 (patch)
tree82da4afdd5bc00c7e0210224d0d008bd32c7cf35 /addons
parentd098d00424a3c7ae2c2b2b26ce31d0889c506478 (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 'addons')
0 files changed, 0 insertions, 0 deletions