mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix a warning when building with --disable-curve25519
It appears that the code for 7291 gave an unused-value warning when built with --disable-curve25519.
This commit is contained in:
parent
5ea9a90d68
commit
7cde094fd5
@ -82,6 +82,8 @@ have_room_for_onionskin(uint16_t type)
|
|||||||
if (type == ONION_HANDSHAKE_TYPE_TAP &&
|
if (type == ONION_HANDSHAKE_TYPE_TAP &&
|
||||||
tap_usec / 1000 > (uint64_t)options->MaxOnionQueueDelay * 2 / 3)
|
tap_usec / 1000 > (uint64_t)options->MaxOnionQueueDelay * 2 / 3)
|
||||||
return 0;
|
return 0;
|
||||||
|
#else
|
||||||
|
(void) type;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user