1
1

packet: Set the packet to the processed data position.

Else we could end up with packet - current_macsize if to_be_read is 0.
Этот коммит содержится в:
Andreas Schneider 2013-11-14 11:42:21 +01:00
родитель 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;
}