Commit 39346fa
committed
fix: Correct isBlacklisted() return logic in OTX module
fix: Correct inverted return values in isBlacklisted() function
The isBlacklisted() function had inverted logic - it returned False when
a value was found in the blacklist and True when not found. This caused
all non-blacklisted results to be filtered out throughout the module.
Fixed by correcting the return values:
- Returns True when value is found in blacklist (was False)
- Returns False when value is not in blacklist (was True)
This fixes enrichment failures in:
- IP passive DNS lookups (getIP function)
- Hash malware domain lookups (getHash function)
- Domain enrichment (getDomain function)
Tested with IP address passive DNS enrichment and confirmed hostnames
are now returned correctly from the OTX API.1 parent 860335e commit 39346fa
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments