mirror of
https://github.com/miekg/dns.git
synced 2025-12-17 09:41:20 +01:00
Clarify maxCompressionPointers comment
This commit is contained in:
parent
32d8e33ba2
commit
d193d08243
4
msg.go
4
msg.go
@ -33,8 +33,8 @@ const (
|
|||||||
//
|
//
|
||||||
// It is possible to construct a valid message that has more compression pointers
|
// It is possible to construct a valid message that has more compression pointers
|
||||||
// than this, and still doesn't loop, by pointing to a previous pointer. This is
|
// than this, and still doesn't loop, by pointing to a previous pointer. This is
|
||||||
// not something a well written implementation should ever do, so we ignore that
|
// not something a well written implementation should ever do, so we leave them
|
||||||
// possibility.
|
// to trip the maximum compression pointer check.
|
||||||
maxCompressionPointers = (maxDomainNameWireOctets+1)/2 - 2
|
maxCompressionPointers = (maxDomainNameWireOctets+1)/2 - 2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user