summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-07-18 22:14:04 -0400
committerirungentoo <irungentoo@gmail.com>2015-07-18 22:14:04 -0400
commitdefdc879f0472eb4c4be0d1dbff5478fd02f1686 (patch)
treefc7f67659088bedf6deab22102302a59b6be52d6
parentdb88dc7b4525b4ea2eb11f4c4df85bf132cd0c74 (diff)
Fixed bug.
-rw-r--r--toxcore/DHT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index ecc13063..ea8ea265 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -2412,7 +2412,7 @@ static int dht_load_state_callback(void *outer, const uint8_t *data, uint32_t le
2412 2412
2413 switch (type) { 2413 switch (type) {
2414 case DHT_STATE_TYPE_NODES: 2414 case DHT_STATE_TYPE_NODES:
2415 if ((length % sizeof(Node_format)) != 0) 2415 if (length == 0)
2416 break; 2416 break;
2417 2417
2418 { 2418 {