mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Return correct error ID
This commit is contained in:
parent
f6b40614e4
commit
81bc933118
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ end
|
|||
function login_user(socket, user, pw)
|
||||
socket:send("USER " .. user .. "\r\n")
|
||||
local status, line = socket:receive_lines(1)
|
||||
if not stat(line) then return false, err.user_error end
|
||||
if not stat(line) then return false, err.userError end
|
||||
socket:send("PASS " .. pw .. "\r\n")
|
||||
|
||||
status, line = socket:receive_lines(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue