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
db88dc7b45
commit
defdc879f0
|
@ -2412,7 +2412,7 @@ static int dht_load_state_callback(void *outer, const uint8_t *data, uint32_t le
|
|||
|
||||
switch (type) {
|
||||
case DHT_STATE_TYPE_NODES:
|
||||
if ((length % sizeof(Node_format)) != 0)
|
||||
if (length == 0)
|
||||
break;
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user