mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Misc trivial improvements around circpadding code.
This commit is contained in:
@@ -304,6 +304,7 @@ circpad_histogram_usec_to_bin(const circpad_machine_state_t *mi,
|
||||
else
|
||||
start_usec = state->start_usec;
|
||||
|
||||
/* The first bin (#0) has zero width and starts (and ends) at start_usec. */
|
||||
if (usec <= start_usec)
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -527,6 +527,7 @@ relay_command_to_string(uint8_t command)
|
||||
case RELAY_COMMAND_EXTEND2: return "EXTEND2";
|
||||
case RELAY_COMMAND_EXTENDED2: return "EXTENDED2";
|
||||
case RELAY_COMMAND_PADDING_NEGOTIATE: return "PADDING_NEGOTIATE";
|
||||
case RELAY_COMMAND_PADDING_NEGOTIATED: return "PADDING_NEGOTIATED";
|
||||
default:
|
||||
tor_snprintf(buf, sizeof(buf), "Unrecognized relay command %u",
|
||||
(unsigned)command);
|
||||
|
||||
Reference in New Issue
Block a user