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
553f3ea513
commit
ba857a203a
|
@ -2705,7 +2705,7 @@ static int messenger_load_state_callback(void *outer, const uint8_t *data, uint3
|
||||||
case MESSENGER_STATE_TYPE_PATH_NODE: {
|
case MESSENGER_STATE_TYPE_PATH_NODE: {
|
||||||
Node_format nodes[NUM_SAVED_PATH_NODES];
|
Node_format nodes[NUM_SAVED_PATH_NODES];
|
||||||
|
|
||||||
if (length != sizeof(nodes)) {
|
if (length == 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user