diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-22 14:13:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-22 14:13:28 -0400 |
commit | 67da2d94119aaf7c843f88ff63302f7ff52218bf (patch) | |
tree | a7caa20a1a904437f3a8f5872d4bcb487e8328a2 | |
parent | 0256702362b76345401156fa5258b686b53fe28e (diff) | |
parent | 80d673ccea4d6f784052dc5bc55cec04647556e7 (diff) | |
download | tor-67da2d94119aaf7c843f88ff63302f7ff52218bf.tar.gz tor-67da2d94119aaf7c843f88ff63302f7ff52218bf.zip |
Merge branch 'maint-0.3.3' into release-0.3.3
-rw-r--r-- | src/or/protover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/protover.c b/src/or/protover.c index 8ca29bc0ff..674bb1c843 100644 --- a/src/or/protover.c +++ b/src/or/protover.c @@ -204,7 +204,7 @@ parse_single_entry(const char *s, const char *end_of_entry) goto error; /* The name must not be longer than MAX_PROTOCOL_NAME_LENGTH. */ - if (equals - s > MAX_PROTOCOL_NAME_LENGTH) { + if (equals - s > (int)MAX_PROTOCOL_NAME_LENGTH) { log_warn(LD_NET, "When parsing a protocol entry, I got a very large " "protocol name. This is possibly an attack or a bug, unless " "the Tor network truly supports protocol names larger than " |