X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_recv.c;h=edbd7c3993bb5f4b3eb18a0efc9f1233e3d9da83;hp=759caa3d5646bf15d0b71cec0bb6932149a7c3c3;hb=ac153fd54a0f093581ee863984070a325d5343b8;hpb=7565af270650435630bf212592286a8c6555d749 diff --git a/udp_recv.c b/udp_recv.c index 759caa3d..edbd7c39 100644 --- a/udp_recv.c +++ b/udp_recv.c @@ -82,6 +82,9 @@ static void udp_recv_post_select(__a_unused struct sched *s, struct task *t) if (!ret) return; packet_size = ret; + if (packet_size >= FEC_EOF_PACKET_LEN) + if (!memcmp(tmpbuf, FEC_EOF_PACKET, FEC_EOF_PACKET_LEN)) + return; t->error = add_rn_output(rn, tmpbuf, packet_size); if (t->error < 0) return;