Skip to content

Commit

Permalink
Pull request 248: 323 check nil dns64
Browse files Browse the repository at this point in the history
Merge in GO/dnsproxy from 323-check-nil-dns64 to master

* commit 'cef86d7c7568abdd708a4647d556204de151a4f7':
  proxy: imp fmt
  Prevent reading from a nil response in DNS64
  • Loading branch information
EugeneOne1 committed Mar 20, 2023
2 parents b673fef + cef86d7 commit f9672a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proxy/dns64.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ func (p *Proxy) performDNS64(
origResp *dns.Msg,
upstreams []upstream.Upstream,
) (u upstream.Upstream) {
if origResp == nil {
return nil
}

dns64Req := p.checkDNS64(origReq, origResp)
if dns64Req == nil {
return nil
Expand Down

0 comments on commit f9672a9

Please sign in to comment.