aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/message_question.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/message_question.go')
-rw-r--r--lib/dns/message_question.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dns/message_question.go b/lib/dns/message_question.go
index b0be7018..c345880b 100644
--- a/lib/dns/message_question.go
+++ b/lib/dns/message_question.go
@@ -60,7 +60,6 @@ func (qst *MessageQuestion) unpack(packet []byte) (err error) {
logp = "MessageQuestion.unpack"
sb strings.Builder
x int
- y int
count int
)
@@ -76,7 +75,7 @@ func (qst *MessageQuestion) unpack(packet []byte) (err error) {
if sb.Len() > 0 {
sb.WriteByte('.')
}
- for y = 0; y < count; y++ {
+ for range count {
x++
if packet[x] >= 'A' && packet[x] <= 'Z' {
sb.WriteByte(packet[x] + 32)