Skip to content

Commit

Permalink
Merge: - dnsforward: don't use dnsfilter object after it's closed (ad…
Browse files Browse the repository at this point in the history
…ditional check)

* commit 'a370cd0bf035213ea7d09e1e577a4612934a8c5a':
  - dnsforward: don't use dnsfilter object after it's closed (additional check)
  • Loading branch information
szolin committed Aug 22, 2019
2 parents e6bd2a1 + a370cd0 commit bde5936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsforward/dnsforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func (s *Server) filterDNSRequest(d *proxy.DNSContext) (*dnsfilter.Result, error

dnsFilter := s.dnsFilter

if !s.conf.ProtectionEnabled {
if !s.conf.ProtectionEnabled || s.dnsFilter == nil {
return &dnsfilter.Result{}, nil
}

Expand Down

0 comments on commit bde5936

Please sign in to comment.