gnrc_tcp: disable checksum checks during fuzzing

This commit is contained in:
Sören Tempel 2019-08-26 12:47:01 +02:00
parent 24468bead6
commit ac9c1f4a69

View File

@ -174,8 +174,10 @@ static int _receive(gnrc_pktsnip_t *pkt)
/* Validate checksum */
if (byteorder_ntohs(hdr->checksum) != _pkt_calc_csum(tcp, ip, pkt)) {
DEBUG("gnrc_tcp_eventloop.c : _receive() : Invalid checksum\n");
#ifndef MODULE_FUZZING
gnrc_pktbuf_release(pkt);
return -EINVAL;
#endif
}
/* Find TCB to for this packet */