Commit 8ecde0f3 authored by chantra's avatar chantra Committed by GitHub

[request] Also clear `do` and `size` (#4465)

Those 2 attriburtes were not cleared as part of `Clear()` call.
Signed-off-by: default avatarchantra <chantr4@gmail.com>
parent 5e7d25dd
...@@ -338,6 +338,8 @@ func (r *Request) Clear() { ...@@ -338,6 +338,8 @@ func (r *Request) Clear() {
r.port = "" r.port = ""
r.localPort = "" r.localPort = ""
r.family = 0 r.family = 0
r.size = 0
r.do = false
} }
// Match checks if the reply matches the qname and qtype from the request, it returns // Match checks if the reply matches the qname and qtype from the request, it returns
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment