From 31c325434ea540f1ca27bc10e88fb13ad960a16b Mon Sep 17 00:00:00 2001 From: Emil Engler Date: Thu, 22 Dec 2022 19:31:01 +0100 Subject: tor-spec: fix ambitious formulation in VERSIONS This commit fixes an ambitious formulation within the definition of the VERSIONS cells. It says, that a VERSIONS cell with an odd number of bytes is invalid. This statement is not true, because the CircID (2 bytes for VERSIONS cells), Command (1 byte) and Length (2 byte) make up 5 bytes, which is an odd number. Adding an odd number to an even number of bytes (the payload in this case) always results in an odd number. --- tor-spec.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tor-spec.txt') diff --git a/tor-spec.txt b/tor-spec.txt index f728478..2116097 100644 --- a/tor-spec.txt +++ b/tor-spec.txt @@ -662,7 +662,7 @@ see tor-design.pdf. versions cell they received. If they have no such version in common, they cannot communicate and MUST close the connection. Either party MUST close the connection if the versions cell is not well-formed (for example, - if it contains an odd number of bytes). + if the payload contains an odd number of bytes). Any VERSIONS cells sent after the first VERSIONS cell MUST be ignored. (To be interpreted correctly, later VERSIONS cells MUST have a CIRCID_LEN -- cgit v1.2.3-54-g00ecf