Skip to content

Instantly share code, notes, and snippets.

@jamesabravo
Created March 2, 2015 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesabravo/c0e88a4af34c091c7b57 to your computer and use it in GitHub Desktop.
Save jamesabravo/c0e88a4af34c091c7b57 to your computer and use it in GitHub Desktop.
diff --git a/sctp_server.c b/sctp_server.c
index b4f7ed8..e2e470e 100644
--- a/sctp_server.c
+++ b/sctp_server.c
@@ -205,14 +205,6 @@ int sctp_server_rcv_loop(void)
su2ip_addr(&ri.src_ip, from);
ri.src_port=su_getport(from);
-#ifndef NO_ZERO_CHECKS
- if (buf[len-1]==0) {
- tmp=ip_addr2a(&ri.src_ip);
- LM_WARN("upstream bug - 0-terminated packet from %s %d\n",
- tmp, htons(ri.src_port));
- len--;
- }
-#endif
if (ri.src_port==0){
tmp=ip_addr2a(&ri.src_ip);
LM_INFO("dropping 0 port packet from %s\n", tmp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment