<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13980">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libmsc/rtp_stream.c: prevent potential NULL-pointer dereference<br><br>Change-Id: Ie80b9fae490acc9ee8de742e35b6ef59c4388f57<br>Fixes: CID#198432<br>---<br>M src/libmsc/rtp_stream.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/80/13980/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libmsc/rtp_stream.c b/src/libmsc/rtp_stream.c</span><br><span>index 6163a98..1a07b49 100644</span><br><span>--- a/src/libmsc/rtp_stream.c</span><br><span>+++ b/src/libmsc/rtp_stream.c</span><br><span>@@ -141,6 +141,8 @@</span><br><span>     switch (event) {</span><br><span>     case RTP_STREAM_EV_CRCX_OK:</span><br><span>          crcx_info = osmo_mgcpc_ep_ci_get_rtp_info(rtps->ci);</span><br><span style="color: hsl(120, 100%, 40%);">+               OSMO_ASSERT(crcx_info != NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>            osmo_sockaddr_str_from_str(&rtps->local, crcx_info->addr, crcx_info->port);</span><br><span>             rtp_stream_update_id(rtps);</span><br><span>          osmo_fsm_inst_dispatch(fi->proc.parent, CALL_LEG_EV_RTP_STREAM_ADDR_AVAILABLE, rtps);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13980">change 13980</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/13980"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie80b9fae490acc9ee8de742e35b6ef59c4388f57 </div>
<div style="display:none"> Gerrit-Change-Number: 13980 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>