From defdc879f0472eb4c4be0d1dbff5478fd02f1686 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 18 Jul 2015 22:14:04 -0400 Subject: Fixed bug. --- toxcore/DHT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 switch (type) { case DHT_STATE_TYPE_NODES: - if ((length % sizeof(Node_format)) != 0) + if (length == 0) break; { -- cgit v1.2.3