Fix tinysvcmdns: rr_data_len goes beyond packet buffer

This commit is contained in:
Felix Schmidt
2021-06-21 06:37:50 +02:00
parent c19f697be2
commit 291455871e
+2 -1
View File
@@ -735,7 +735,8 @@ static size_t mdns_parse_rr(uint8_t *pkt_buf, size_t pkt_len, size_t off, struct
if (name == NULL)
goto err;
// parse the MDNS RR section p += label_len(pkt_buf, pkt_len, off);
// parse the MDNS RR section
p += label_len(pkt_buf, pkt_len, off);
rr->name = name;
rr->type = mdns_read_u16(p);