Browse code

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

Jiri Kuthan authored on 21/06/2003 18:38:32
Showing 1 changed files
... ...
@@ -330,8 +330,8 @@ int udp_rcv_loop()
330 330
 		buf[len]=0; /* no need to save the previous char */
331 331
 
332 332
 #ifndef NO_ZERO_CHECKS
333
-		if (len==0) {
334
-			LOG(L_WARN, "WARNING: empty packet received\n");
333
+		if (len<5) {
334
+			DBG("DEBUG: probing packet received\n");
335 335
 			continue;
336 336
 		}
337 337
 		if (buf[len-1]==0) {