mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
resolved: fix multi-record packets with TXTs
This commit is contained in:
parent
a59f16ce4a
commit
cbd67a86fb
@ -968,7 +968,7 @@ int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, size_t *start) {
|
||||
case DNS_TYPE_TXT: {
|
||||
char *s;
|
||||
|
||||
while (p->rindex < p->size) {
|
||||
while (p->rindex < offset + rdlength) {
|
||||
r = dns_packet_read_string(p, &s, NULL);
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user