mirror of
https://github.com/nmap/nmap.git
synced 2025-12-19 14:09:02 +00:00
Upgrade libssh2 to 1.10.0
This commit is contained in:
@@ -219,7 +219,7 @@ banner_send(LIBSSH2_SESSION * session)
|
||||
}
|
||||
else {
|
||||
memcpy(banner_dup, banner, 255);
|
||||
banner[255] = '\0';
|
||||
banner_dup[255] = '\0';
|
||||
}
|
||||
|
||||
_libssh2_debug(session, LIBSSH2_TRACE_TRANS, "Sending Banner: %s",
|
||||
@@ -589,7 +589,7 @@ int _libssh2_wait_socket(LIBSSH2_SESSION *session, time_t start_time)
|
||||
session->err_code = LIBSSH2_ERROR_NONE;
|
||||
|
||||
rc = libssh2_keepalive_send(session, &seconds_to_next);
|
||||
if(rc < 0)
|
||||
if(rc)
|
||||
return rc;
|
||||
|
||||
ms_to_next = seconds_to_next * 1000;
|
||||
|
||||
Reference in New Issue
Block a user