浏览代码

empty packets are no longer reported to syslog (too much garbage because
of nat referesh messages)

Jiri Kuthan 22 年之前
父节点
当前提交
40e1a4f020
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      udp_server.c

+ 2 - 2
udp_server.c

@@ -330,8 +330,8 @@ int udp_rcv_loop()
 		buf[len]=0; /* no need to save the previous char */
 
 #ifndef NO_ZERO_CHECKS
-		if (len==0) {
-			LOG(L_WARN, "WARNING: empty packet received\n");
+		if (len<5) {
+			DBG("DEBUG: probing packet received\n");
 			continue;
 		}
 		if (buf[len-1]==0) {