diff options
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index 6ee1fe75..52fdfeaf 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -627,7 +627,7 @@ static int handle_dht_fakeid(void *object, IP_Port source, uint8_t *source_pubke | |||
627 | if ((uint32_t)len != length - (DATA_IN_RESPONSE_MIN_SIZE + crypto_box_NONCEBYTES)) | 627 | if ((uint32_t)len != length - (DATA_IN_RESPONSE_MIN_SIZE + crypto_box_NONCEBYTES)) |
628 | return 1; | 628 | return 1; |
629 | 629 | ||
630 | if (memcpy(source_pubkey, packet, crypto_box_PUBLICKEYBYTES) != 0) | 630 | if (memcmp(source_pubkey, plain + 1 + sizeof(uint64_t), crypto_box_PUBLICKEYBYTES) != 0) |
631 | return 1; | 631 | return 1; |
632 | 632 | ||
633 | return handle_fakeid_announce(onion_c, packet, plain, len); | 633 | return handle_fakeid_announce(onion_c, packet, plain, len); |