Use lenmsg rather than len(msg) in packDomainName

This is purely for consistency, they are always equal at this point.
This commit is contained in:
Tom Thorogood 2018-11-26 15:08:05 +10:30
parent 9358e95aef
commit e5bc3b14fb
No known key found for this signature in database
GPG Key ID: 86C63CDA416C6D2F
1 changed files with 1 additions and 1 deletions

2
msg.go
View File

@ -324,7 +324,7 @@ loop:
return off + 2, labels, nil
}
if msg != nil && off < len(msg) {
if msg != nil && off < lenmsg {
msg[off] = 0
}