<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6447">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk: Drop rtcp packets less than 2 words in length<br><br>Don't bother checking anything else.<br><br>Change-Id: I67d89e3c27db83efa0e6b52734f73c88ac2939e2<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 9 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/47/6447/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c<br>index 4881171..297b951 100644<br>--- a/res/res_rtp_asterisk.c<br>+++ b/res/res_rtp_asterisk.c<br>@@ -3894,6 +3894,15 @@<br> return &ast_null_frame;<br> }<br> <br>+ ast_debug(1, "Got RTCP report of %d bytes\n", res);<br>+<br>+ packetwords = res / 4;<br>+<br>+ if (packetwords < 2) {<br>+ ast_debug(1, "RTCP frame size (%d words) is shorter than 2 words\n", packetwords);<br>+ return f;<br>+ }<br>+<br> if (!*(rtcpdata + AST_FRIENDLY_OFFSET)) {<br> struct sockaddr_in addr_tmp;<br> struct ast_sockaddr addr_v4;<br>@@ -3915,10 +3924,6 @@<br> }<br> return &ast_null_frame;<br> }<br>-<br>- packetwords = res / 4;<br>-<br>- ast_debug(1, "Got RTCP report of %d bytes\n", res);<br> <br> while (position < packetwords) {<br> int i, pt, rc;<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6447">change 6447</a>. To unsubscribe, 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/6447"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 11 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I67d89e3c27db83efa0e6b52734f73c88ac2939e2 </div>
<div style="display:none"> Gerrit-Change-Number: 6447 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>