|
@@ -477,7 +477,12 @@ int udp_rcv_loop()
|
|
|
#ifdef USE_STUN
|
|
|
}
|
|
|
#endif
|
|
|
-#ifndef USE_STUN
|
|
|
+/* historically, zero-terminated packets indicated a bug in clients
|
|
|
+ * that calculated wrongly packet length and included string-terminating
|
|
|
+ * zero; today clients exist with legitimate binary payloads and we
|
|
|
+ * shall not check for zero-terminated payloads
|
|
|
+ */
|
|
|
+#ifdef TRASH_ZEROTERMINATED_PACKETS
|
|
|
if (buf[len-1]==0) {
|
|
|
tmp=ip_addr2a(&ri.src_ip);
|
|
|
LOG(L_WARN, "WARNING: udp_rcv_loop: "
|