$FreeBSD: ports/net/ser/files/patch-udp_server.c,v 1.3 2006/04/21 06:30:43 sobomax Exp $ --- udp_server.c +++ udp_server.c @@ -432,6 +432,10 @@ continue; /* goto skip;*/ else goto error; } + if (len < 128) { + /* Message is too short, just drop it already */ + continue; + } /* we must 0-term the messages, receive_msg expects it */ buf[len]=0; /* no need to save the previous char */