Skip to content

Commit

Permalink
Fix: potential fix for nil pointer
Browse files Browse the repository at this point in the history
When no IPs are returned, we should stop this dance. This could be
a temporary problem with dns resolution.

For: #108
  • Loading branch information
till committed Sep 6, 2022
1 parent 99fbd8a commit 23885ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions collector/rbl.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (rbl *Rbl) lookup(rblList string, targetHost string) []Rblresult {
ipsA, err := rbl.util.GetARecords(targetHost)
if err != nil {
log.Errorln(err)
return rbl.Results
}

ips = ipsA
Expand Down

0 comments on commit 23885ae

Please sign in to comment.