[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>
This commit is contained in:
chantra
2021-02-17 11:42:37 -08:00
committed by GitHub
parent 5e7d25ddce
commit 8ecde0f37b

View File

@@ -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