From 548d87794bb334647adbf1b9ef136095ed399f9d Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 26 Jan 2015 20:51:08 -0500 Subject: [PATCH] Code cleanup. --- toxcore/onion_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index f4b1ffcb..e47e8d26 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c @@ -880,7 +880,7 @@ static int handle_dht_fakeid(void *object, IP_Port source, const uint8_t *source packet + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES, length - (crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES), plain); - if ((uint32_t)len != length - (DATA_IN_RESPONSE_MIN_SIZE + crypto_box_NONCEBYTES)) + if (len != length - (DATA_IN_RESPONSE_MIN_SIZE + crypto_box_NONCEBYTES)) return 1; if (memcmp(source_pubkey, plain + 1 + sizeof(uint64_t), crypto_box_PUBLICKEYBYTES) != 0)