Skip to content

Commit

Permalink
fixed the AutnumRecord query
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Sep 8, 2024
1 parent 422d5b9 commit 705f0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/amass/subs.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func fillCache(cache *ASNCache, db *graph.Graph) error {
}

for _, rel := range rels {
if asset, err := db.DB.FindById(rel.ID, start); err == nil && asset != nil {
if asset, err := db.DB.FindById(rel.ToAsset.ID, start); err == nil && asset != nil {
if autnum, ok := asset.Asset.(*whois.AutnumRecord); ok && autnum != nil {
desc = autnum.Handle + " - " + autnum.Name
break
Expand Down

0 comments on commit 705f0a3

Please sign in to comment.