mirror of https://github.com/MISP/misp-modules
fix: [farsight_passivedns] Fixed lookup_rdata_name results desclaration
- Getting generator as a list as it is already the case for all the other results, so it avoids issues to read the results by accidently looping through the generator before it is actually needed, which would lose the content of the generator - Also removed print that was accidently introduced with the last commitpull/496/head
parent
efd2ffce3b
commit
d7b529d3fe
|
@ -193,7 +193,7 @@ def lookup_name(client, lookup_args, name, flex):
|
|||
if rrset_response:
|
||||
response['rrset'] = rrset_response
|
||||
# RDATA = entries on the right-hand side of the domain name related labels
|
||||
rdata_response = client.lookup_rdata_name(name, **lookup_args)
|
||||
rdata_response = list(client.lookup_rdata_name(name, **lookup_args))
|
||||
if rdata_response:
|
||||
response['rdata'] = rdata_response
|
||||
if flex:
|
||||
|
|
Loading…
Reference in New Issue