1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

resolved: fix deserialization of UTF8 host names

This commit is contained in:
Lennart Poettering 2014-07-31 19:54:24 +02:00
parent 7b9f7afcc0
commit 8581858257

View File

@ -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) {