diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-31 19:54:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-31 19:54:24 +0200 |
commit | 85818582574bcd1c3707c2a4609c9e283e47493f (patch) | |
tree | e93a4a64a55067f4aec229e20efe486e6095d3d0 /src/resolve/resolved-dns-packet.c | |
parent | 7b9f7afcc04e80b77a2567b0750aa2cd03c1a1cd (diff) |
resolved: fix deserialization of UTF8 host names
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 3eda803144..7793a014df 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -840,7 +840,7 @@ int dns_packet_read_name(DnsPacket *p, char **_ret, size_t *start) { else first = false; - memcpy(ret + n, t, c); + memcpy(ret + n, t, r); n += r; continue; } else if ((c & 0xc0) == 0xc0) { |