From e5bc3b14fbb3a25be95f19e981c0fa5f45fea4cb Mon Sep 17 00:00:00 2001 From: Tom Thorogood Date: Mon, 26 Nov 2018 15:08:05 +1030 Subject: [PATCH] Use lenmsg rather than len(msg) in packDomainName This is purely for consistency, they are always equal at this point. --- msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg.go b/msg.go index 1937d7e6..6474d949 100644 --- a/msg.go +++ b/msg.go @@ -324,7 +324,7 @@ loop: return off + 2, labels, nil } - if msg != nil && off < len(msg) { + if msg != nil && off < lenmsg { msg[off] = 0 }