tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 32e791be09211feb8d6040bf8352bbc9b49e0bed
parent db4815dd8e7477803bc29c89284a7641b20ab5ba
Author: Neel Chauhan <neel@neelc.org>
Date:   Sat, 16 May 2020 22:26:30 -0700

Fix spacing in if statement in tor_version_parse()

Diffstat:
Msrc/core/or/versions.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/or/versions.c b/src/core/or/versions.c @@ -296,7 +296,7 @@ tor_version_parse(const char *s, tor_version_t *out) return -1; hexlen = (int)(close_paren-cp); memwipe(digest, 0, sizeof(digest)); - if ( hexlen == 0 || (hexlen % 2) == 1) + if (hexlen == 0 || (hexlen % 2) == 1) return -1; if (base16_decode(digest, hexlen/2, cp, hexlen) != hexlen/2) return -1;