<p>If sctp_server_rcv_loop() in sctp_server.c receives a 0-terminated packet it removes the 0.<br>
This causes problems with binary content when it ends with a 0.</p>
<p>Enabling NO_ZERO_CHECKS would fix this issue but would also change the behaviour of bin_receive_loop() in bin_interface.c which also uses the define.</p>
<p>I believe removing the section in sctp_server_rcv_loop() is the right move. <br>
If your interested, I've uploaded a patch at: <br>
<a href="https://gist.github.com/jamesabravo/c0e88a4af34c091c7b57">https://gist.github.com/jamesabravo/c0e88a4af34c091c7b57</a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/419">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibCpAnMC1-xFgJGWFFDo4_ceS4l8ks5nxBttgaJpZM4Dn57c.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/419"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>