mirror of
https://github.com/nmap/nmap.git
synced 2025-12-19 14:09:02 +00:00
Update libssh2 to 1.8.1. Fixes #1523
This commit is contained in:
@@ -765,6 +765,11 @@ session_startup(LIBSSH2_SESSION *session, libssh2_socket_t sock)
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
if(session->startup_data_len < 5) {
|
||||
return _libssh2_error(session, LIBSSH2_ERROR_PROTO,
|
||||
"Unexpected packet length");
|
||||
}
|
||||
|
||||
session->startup_service_length =
|
||||
_libssh2_ntohu32(session->startup_data + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user