Fixed bug.

This commit is contained in:
irungentoo 2015-07-18 22:14:04 -04:00
parent db88dc7b45
commit defdc879f0
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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;
{