packet: Set the packet to the processed data position.
Else we could end up with packet - current_macsize if to_be_read is 0.
Этот коммит содержится в:
родитель
b3a08ba8d3
Коммит
097760db17
@ -263,7 +263,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
|
||||
}
|
||||
|
||||
/* copy the last part from the incoming buffer */
|
||||
packet = packet + to_be_read - current_macsize;
|
||||
packet = ((uint8_t *)data) + processed;
|
||||
if (packet == NULL) {
|
||||
goto error;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user