<p>Friendly Automation has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10874">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_transport_websocket: Don't assert on 0 length payloads<br><br>When --enable-dev-mode is used, pjsip_tpmgr_receive_packet() will assert<br>if passed a payload length of 0, so treat empty frames as if we didn't<br>receive them.<br><br>Change-Id: I9c5fdccd89cc8d2f3ed7e3ee405ef0fc78178f48<br>---<br>M res/res_pjsip_transport_websocket.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/74/10874/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_transport_websocket.c b/res/res_pjsip_transport_websocket.c</span><br><span>index 2abbf15..73268ea 100644</span><br><span>--- a/res/res_pjsip_transport_websocket.c</span><br><span>+++ b/res/res_pjsip_transport_websocket.c</span><br><span>@@ -396,7 +396,9 @@</span><br><span> }</span><br><span> </span><br><span> if (opcode == AST_WEBSOCKET_OPCODE_TEXT || opcode == AST_WEBSOCKET_OPCODE_BINARY) {</span><br><span style="color: hsl(0, 100%, 40%);">- ast_sip_push_task_wait_serializer(serializer, transport_read, &read_data);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (read_data.payload_len) {</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_sip_push_task_wait_serializer(serializer, transport_read, &read_data);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> } else if (opcode == AST_WEBSOCKET_OPCODE_CLOSE) {</span><br><span> break;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10874">change 10874</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/10874"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9c5fdccd89cc8d2f3ed7e3ee405ef0fc78178f48 </div>
<div style="display:none"> Gerrit-Change-Number: 10874 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>