mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
fixed the following bug reported by Ron
./scripts/ldap-brute.nse:75: attempt to get length of local 'contexts' (a nil value)
stack traceback:
./scripts/ldap-brute.nse:75: in function 'get_naming_context'
./scripts/ldap-brute.nse:121: in function <./scripts/ldap-brute.nse:95>
(tail call): ?
This commit is contained in:
parent
8a060083b9
commit
356c1e12a9
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ function get_naming_context( socket )
|
|||
contexts = ldap.extractAttribute( searchResEntries, "namingContexts" )
|
||||
end
|
||||
|
||||
if #contexts > 0 then
|
||||
if contexts and #contexts > 0 then
|
||||
return contexts[1]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue