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 May 14, 2022
1 parent d6426f7 commit 4a91a07
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 4a91a07

Please sign in to comment.