mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
packet: Remove dead code.
This commit is contained in:
@@ -231,9 +231,6 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
|
||||
}
|
||||
|
||||
packet = ((uint8_t*)data) + processed;
|
||||
if (packet == NULL) {
|
||||
goto error;
|
||||
}
|
||||
#if 0
|
||||
ssh_socket_read(session->socket,
|
||||
packet,
|
||||
@@ -264,9 +261,6 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
|
||||
|
||||
/* copy the last part from the incoming buffer */
|
||||
packet = ((uint8_t *)data) + processed;
|
||||
if (packet == NULL) {
|
||||
goto error;
|
||||
}
|
||||
memcpy(mac, packet, MACSIZE);
|
||||
|
||||
rc = packet_hmac_verify(session, session->in_buffer, mac);
|
||||
|
Reference in New Issue
Block a user