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:
parent
7b9f7afcc0
commit
8581858257
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user