mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
Correctly decode MySql error packets.
This commit is contained in:
parent
84dcd2c915
commit
cc5759a6d2
1 changed files with 2 additions and 1 deletions
|
|
@ -275,7 +275,8 @@ function loginRequest( socket, params, username, password, salt )
|
|||
response.sqlstate, pos = string.unpack( "c5", packet, pos )
|
||||
end
|
||||
|
||||
response.errormessage, pos = string.unpack( "z", packet, pos )
|
||||
-- Error message is a RestOfPacketString
|
||||
response.errormessage = string.sub(packet, pos)
|
||||
|
||||
return false, response.errormessage
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue