From 1de2ef78cfa498eef1b11f1e768b8d61bc1718ca Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 22 Jul 2015 22:55:52 -0400 Subject: [PATCH] Fixed bug. --- toxcore/Messenger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index ed35b696e..c384ac173 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -2706,7 +2706,7 @@ static int messenger_load_state_callback(void *outer, const uint8_t *data, uint3 Node_format nodes[NUM_SAVED_PATH_NODES]; if (length == 0) { - return -1; + break; } int i, num = unpack_nodes(nodes, NUM_SAVED_PATH_NODES, 0, data, length, 0);