Merge pull request #11999 from nmeum/pr/gnrc_tcp_mark_update

net/gnrc/tcp: fix invalid read
This commit is contained in:
benpicco 2019-08-20 15:37:17 +02:00 committed by GitHub
commit 20dec77e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ static int _receive(gnrc_pktsnip_t *pkt)
return -ENOMSG;
}
pkt->type = GNRC_NETTYPE_UNDEF;
hdr = (tcp_hdr_t *)tcp->data;
}
/* Validate checksum */