diff options
author | 2021-02-17 11:42:37 -0800 | |
---|---|---|
committer | 2021-02-17 20:42:37 +0100 | |
commit | 8ecde0f37b80178bb1603581fb0965d1eb490844 (patch) | |
tree | d31dce7aff7d06e7070a3d00af11a6adda45365d /request | |
parent | 5e7d25ddce5ce9e3f161b22386e67f8f201e394c (diff) | |
download | coredns-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.go | 2 |
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 |