]> git.ipfire.org Git - thirdparty/tor.git/commit
circuit: Change close reasons from uint16_t to int
authorDavid Goulet <dgoulet@torproject.org>
Thu, 22 Dec 2016 17:37:42 +0000 (12:37 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 23 Jan 2017 00:02:01 +0000 (19:02 -0500)
commit96c7ddbc7e8a38385fa0f7b5d810d0bf8bdf6990
tree5e11c7007110cd30991611c3a32dfdb5001fb94c
parent46aee42cb99dcf3cba69091aeceb1f61d3961f3a
circuit: Change close reasons from uint16_t to int

When marking for close a circuit, the reason value, a integer, was assigned to
a uint16_t converting any negative reasons (internal) to the wrong value. On
the HS side, this was causing the client to flag introduction points to be
unreachable as the internal reason was wrongfully converted to a positive
16bit value leading to flag 2 out of 3 intro points to be unreachable.

Fixes #20307 and partially fixes #21056

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/bug20307 [new file with mode: 0644]
src/or/or.h