Created
March 2, 2015 08:33
-
-
Save jamesabravo/c0e88a4af34c091c7b57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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