diff options
-rw-r--r-- | toxcore/Messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 3fb15022..ed35b696 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -2705,7 +2705,7 @@ static int messenger_load_state_callback(void *outer, const uint8_t *data, uint3 | |||
2705 | case MESSENGER_STATE_TYPE_PATH_NODE: { | 2705 | case MESSENGER_STATE_TYPE_PATH_NODE: { |
2706 | Node_format nodes[NUM_SAVED_PATH_NODES]; | 2706 | Node_format nodes[NUM_SAVED_PATH_NODES]; |
2707 | 2707 | ||
2708 | if (length != sizeof(nodes)) { | 2708 | if (length == 0) { |
2709 | return -1; | 2709 | return -1; |
2710 | } | 2710 | } |
2711 | 2711 | ||