Fix parsing of URI resource records
FossilOrigin-Name: 2b7bc4c1062d3683c4da91297079d3e4830295d10ab30cc2edfafcf0f95423cb
This commit is contained in:
parent
8ae4c66f70
commit
5a1f276d37
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ parseResourceRecord(OFString *name, OFDNSClass DNSClass,
|
|||
priority = (buffer[i] << 8) | buffer[i + 1];
|
||||
weight = (buffer[i + 2] << 8) | buffer[i + 3];
|
||||
|
||||
target = [OFString stringWithUTF8String: (char *)buffer + 4
|
||||
target = [OFString stringWithUTF8String: (char *)buffer + i + 4
|
||||
length: dataLength - 4];
|
||||
|
||||
return [[[OFURIDNSResourceRecord alloc]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue