diff options
Diffstat (limited to 'core/DHT.c')
-rw-r--r-- | core/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1053,7 +1053,7 @@ static int send_NATping(uint8_t * public_key, uint64_t ping_id, uint8_t type) | |||
1053 | static int handle_NATping(uint8_t * packet, uint32_t length, IP_Port source) | 1053 | static int handle_NATping(uint8_t * packet, uint32_t length, IP_Port source) |
1054 | { | 1054 | { |
1055 | if (length < crypto_box_PUBLICKEYBYTES * 2 + crypto_box_NONCEBYTES + ENCRYPTION_PADDING | 1055 | if (length < crypto_box_PUBLICKEYBYTES * 2 + crypto_box_NONCEBYTES + ENCRYPTION_PADDING |
1056 | && length > MAX_DATA_SIZE + ENCRYPTION_PADDING) | 1056 | || length > MAX_DATA_SIZE + ENCRYPTION_PADDING) |
1057 | return 1; | 1057 | return 1; |
1058 | 1058 | ||
1059 | /* check if request is for us. */ | 1059 | /* check if request is for us. */ |