Skip to content
Permalink
Browse files

- rewrites: fix crash when handling name->cname->A chain

crash.adguard -> adguard.a.record
adguard.a.record -> 1.2.3.4
  • Loading branch information
szolin committed May 21, 2020
1 parent 2d1cba6 commit 0848ca0e69e3c535b70e2d1f7e8c24f0e1941ee9
Showing with 3 additions and 0 deletions.
  1. +3 −0 dnsforward/handle_dns.go
@@ -211,6 +211,9 @@ func processFilteringAfterResponse(ctx *dnsContext) int {

switch res.Reason {
case dnsfilter.ReasonRewrite:
if d.Res != nil {
break // response is already prepared
}
if len(res.CanonName) == 0 {
break
}

0 comments on commit 0848ca0

Please sign in to comment.
You can’t perform that action at this time.