aboutsummaryrefslogtreecommitdiff
path: root/request
diff options
context:
space:
mode:
authorGravatar chantra <chantra@users.noreply.github.com> 2021-02-17 11:42:37 -0800
committerGravatar GitHub <noreply@github.com> 2021-02-17 20:42:37 +0100
commit8ecde0f37b80178bb1603581fb0965d1eb490844 (patch)
treed31dce7aff7d06e7070a3d00af11a6adda45365d /request
parent5e7d25ddce5ce9e3f161b22386e67f8f201e394c (diff)
downloadcoredns-8ecde0f37b80178bb1603581fb0965d1eb490844.tar.gz
coredns-8ecde0f37b80178bb1603581fb0965d1eb490844.tar.zst
coredns-8ecde0f37b80178bb1603581fb0965d1eb490844.zip
[request] Also clear `do` and `size` (#4465)
Those 2 attriburtes were not cleared as part of `Clear()` call. Signed-off-by: chantra <chantr4@gmail.com>
Diffstat (limited to 'request')
-rw-r--r--request/request.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/request/request.go b/request/request.go
index 649e573c1..7731ff38b 100644
--- a/request/request.go
+++ b/request/request.go
@@ -338,6 +338,8 @@ func (r *Request) Clear() {
r.port = ""
r.localPort = ""
r.family = 0
+ r.size = 0
+ r.do = false
}
// Match checks if the reply matches the qname and qtype from the request, it returns