mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fixed a bug in smb-enum-sessions discovered by Brandon Enright -- most error conditions would cause a nil-pointer exception.
This commit is contained in:
parent
00b2c842e2
commit
49d8db7ba5
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ action = function(host)
|
|||
sessions_output['name'] = "Active SMB sessions"
|
||||
status2, sessions = srvsvc_enum_sessions(host)
|
||||
if(status2 == false) then
|
||||
sessions['warning'] = "Couldn't enumerate network sessions: " .. sessions
|
||||
sessions_output['warning'] = "Couldn't enumerate network sessions: " .. sessions
|
||||
else
|
||||
if(#sessions == 0) then
|
||||
table.insert(sessions_output, "<none>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue