euscan/handlers: fix resursive brute force in generic handler
component was modified by the function since it's a reference, do an explicit copy to fix that. Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
1fae084566
commit
454d369ced
@ -170,7 +170,7 @@ def brute_force(cpv, url):
|
||||
result.append([url, version])
|
||||
|
||||
if CONFIG["brute-force-recursive"]:
|
||||
for v in helpers.gen_versions(components, CONFIG["brute-force"]):
|
||||
for v in helpers.gen_versions(list(components), CONFIG["brute-force"]):
|
||||
if v not in versions and tuple(v) not in done:
|
||||
versions.append(v)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user