diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-31 10:44:11 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-31 10:45:24 -0400 |
commit | cbd67a86fbb0452bb4a341783b15eb504a432fc0 (patch) | |
tree | 33e5df340182437ffb86c6aebf5af01f8b9534fc /src/resolve/resolved-dns-packet.c | |
parent | a59f16ce4a11c440cb2136ad3d5e3184714c545e (diff) |
resolved: fix multi-record packets with TXTs
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r-- | src/resolve/resolved-dns-packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index fae105d0da..32c4876a54 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -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; |