]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix tinysvcmdns: rr_data_len goes beyond packet buffer 1211/head
authorFelix Schmidt <fesc2000@gmail.com>
Mon, 21 Jun 2021 04:37:50 +0000 (06:37 +0200)
committerFelix Schmidt <fesc2000@gmail.com>
Mon, 21 Jun 2021 04:37:50 +0000 (06:37 +0200)
tinysvcmdns.c

index 9e605e078db797618d0955b09bf7ee027e81a062..55e82ad29550aef6df693aa66bb62844877384a4 100644 (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);