From 8ecde0f37b80178bb1603581fb0965d1eb490844 Mon Sep 17 00:00:00 2001 From: chantra Date: Wed, 17 Feb 2021 11:42:37 -0800 Subject: [PATCH] [request] Also clear `do` and `size` (#4465) Those 2 attriburtes were not cleared as part of `Clear()` call. Signed-off-by: chantra --- request/request.go | 2 ++ 1 file changed, 2 insertions(+) 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