Browse Source

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

Jiri Kuthan 22 years ago
parent
commit
40e1a4f020
1 changed files with 2 additions and 2 deletions
  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) {