1
0
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:
Zbigniew Jędrzejewski-Szmek 2014-07-31 10:44:11 -04:00
parent a59f16ce4a
commit cbd67a86fb

View File

@ -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;