<p>George Joseph <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15726">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bridge_channel_write_frame: Check for NULL channel<br><br>There is a possibility, when bridge_channel_write_frame() is<br>called, that the bridge_channel->chan will be NULL. The first<br>thing bridge_channel_write_frame() does though is call<br>ast_channel_is_multistream() which had no check for a NULL<br>channel and therefore caused a segfault. Since it's still<br>possible for bridge_channel_write_frame() to write the frame to<br>the other channels in the bridge, we don't want to bail before we<br>call ast_channel_is_multistream() but we can just skip the<br>multi-channel stuff. So...<br><br>bridge_channel_write_frame() only calls ast_channel_is_multistream()<br>if bridge_channel->chan is not NULL.<br><br>As a safety measure, ast_channel_is_multistream() now returns<br>false if the supplied channel is NULL.<br><br>ASTERISK-29379<br>Reported-by: Vyrva Igor<br>Reported-by: Ross Beer<br><br>Change-Id: Idfe62dbea8c69813ecfd58e113a6620dc42352ce<br>---<br>M main/bridge_channel.c<br>M main/channel_internal_api.c<br>2 files changed, 9 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/15726/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15726">change 15726</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/15726"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Idfe62dbea8c69813ecfd58e113a6620dc42352ce </div>
<div style="display:none"> Gerrit-Change-Number: 15726 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>