mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
avoid a signed/unsigned comparison.
This commit is contained in:
parent
240bb17714
commit
7483aef896
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,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 "
|
||||
|
|
Loading…
Add table
Reference in a new issue