1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

nselib/smb: fix find_files function (next_item coroutine)

Patch by Pierre LALET <pierre.lalet@cea.fr>
This commit is contained in:
henri
2015-04-30 17:58:13 +00:00
parent 1704d93482
commit b1d6bcd9be

View File

@@ -2813,7 +2813,7 @@ function find_files(smbstate, fname, options)
last_name = fe.fname
coroutine.yield(fe)
until ( ne == 0 )
until ( ne == 0 or pos > response.data:len() )
first = false
until(stop_loop)
return