diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-10-14 11:31:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-10-14 11:31:58 -0400 |
commit | 4a80dde43c44e619a53547e73283602747cba370 (patch) | |
tree | c5678b6ac3f6bf73c23ab0ad42b9675c73e75f6b /src/core/or/protover.c | |
parent | f02f8f8946bcfb0e11f9ce8c636845731cdddbeb (diff) | |
parent | dd63b972883f6c0b23ee2f7661b7897b229dd28f (diff) | |
download | tor-4a80dde43c44e619a53547e73283602747cba370.tar.gz tor-4a80dde43c44e619a53547e73283602747cba370.zip |
Merge branch 'prop318_limit_protover_035' into prop318_limit_protover_045
Diffstat (limited to 'src/core/or/protover.c')
-rw-r--r-- | src/core/or/protover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/or/protover.c b/src/core/or/protover.c index 26fcefe8ac..712e264314 100644 --- a/src/core/or/protover.c +++ b/src/core/or/protover.c @@ -118,13 +118,13 @@ proto_entry_free_(proto_entry_t *entry) } /** The largest possible protocol version. */ -#define MAX_PROTOCOL_VERSION (UINT32_MAX-1) +#define MAX_PROTOCOL_VERSION (63) /** * Given a string <b>s</b> and optional end-of-string pointer * <b>end_of_range</b>, parse the protocol range and store it in * <b>low_out</b> and <b>high_out</b>. A protocol range has the format U, or - * U-U, where U is an unsigned 32-bit integer. + * U-U, where U is an unsigned integer between 0 and 63 inclusive. */ static int parse_version_range(const char *s, const char *end_of_range, |