summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.c')
-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 {