mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug.
This commit is contained in:
parent
50e0802a62
commit
6aaac706fa
|
@ -700,13 +700,15 @@ static int handle_request_packet(Packets_Array *send_array, const uint8_t *data,
|
|||
n = 0;
|
||||
++requested;
|
||||
} else {
|
||||
uint64_t sent_time = send_array->buffer[num]->sent_time;
|
||||
if (send_array->buffer[num]) {
|
||||
uint64_t sent_time = send_array->buffer[num]->sent_time;
|
||||
|
||||
if (l_sent_time < sent_time)
|
||||
l_sent_time = sent_time;
|
||||
if (l_sent_time < sent_time)
|
||||
l_sent_time = sent_time;
|
||||
|
||||
free(send_array->buffer[num]);
|
||||
send_array->buffer[num] = NULL;
|
||||
free(send_array->buffer[num]);
|
||||
send_array->buffer[num] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (n == 255) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user