summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-07-21 21:49:37 -0400
committerirungentoo <irungentoo@gmail.com>2015-07-21 21:49:37 -0400
commitba857a203ae76a4e9b814adaebeaffa394464731 (patch)
tree96f2ff5c98f1d6ac7744e2199145e2e264c93b7f
parent553f3ea51302ac9f7c946457c7914dfee380f3a6 (diff)
Fixed bug.
-rw-r--r--toxcore/Messenger.c2
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