Skip to content

Commit

Permalink
fanout: allow empty answer (#1347)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
  • Loading branch information
glazychev-art authored Sep 8, 2022
1 parent ed5cc97 commit e02e39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tools/dnsutils/fanout/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (h *fanoutHandler) waitResponse(ctx context.Context, respCh <-chan *dns.Msg
}
continue
}
if resp.Rcode == dns.RcodeSuccess && len(resp.Answer) != 0 {
if resp.Rcode == dns.RcodeSuccess {
return resp
}
if respCount == 0 {
Expand Down

0 comments on commit e02e39b

Please sign in to comment.