diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-10 14:17:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-10 14:17:10 -0500 |
commit | 71c49f735636d626abaa13222aa14e7c97f73393 (patch) | |
tree | 4dcdaba343c5f09e8765961586a0426c59ffc87d /src/rust | |
parent | 7afb95d3e3021b78619e76a13ea261e68ecd3162 (diff) | |
parent | f3fa22bf1b52dfce65a37e6a84bac8635916e8c2 (diff) | |
download | tor-71c49f735636d626abaa13222aa14e7c97f73393.tar.gz tor-71c49f735636d626abaa13222aa14e7c97f73393.zip |
Merge branch 'maint-0.4.0' into maint-0.4.1
Diffstat (limited to 'src/rust')
-rw-r--r-- | src/rust/protover/protover.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs index 7a76fcdd94..0ca960bd69 100644 --- a/src/rust/protover/protover.rs +++ b/src/rust/protover/protover.rs @@ -26,7 +26,7 @@ const FIRST_TOR_VERSION_TO_ADVERTISE_PROTOCOLS: &'static str = "0.2.9.3-alpha"; /// before concluding that someone is trying to DoS us /// /// C_RUST_COUPLED: protover.c `MAX_PROTOCOLS_TO_EXPAND` -const MAX_PROTOCOLS_TO_EXPAND: usize = (1 << 16); +const MAX_PROTOCOLS_TO_EXPAND: usize = 1 << 16; /// The maximum size an `UnknownProtocol`'s name may be. pub(crate) const MAX_PROTOCOL_NAME_LENGTH: usize = 100; |