Fix spacing in if statement in tor_version_parse()

This commit is contained in:
Neel Chauhan 2020-05-16 22:26:30 -07:00
parent db4815dd8e
commit 32e791be09

View File

@ -296,7 +296,7 @@ tor_version_parse(const char *s, tor_version_t *out)
return -1; return -1;
hexlen = (int)(close_paren-cp); hexlen = (int)(close_paren-cp);
memwipe(digest, 0, sizeof(digest)); memwipe(digest, 0, sizeof(digest));
if ( hexlen == 0 || (hexlen % 2) == 1) if (hexlen == 0 || (hexlen % 2) == 1)
return -1; return -1;
if (base16_decode(digest, hexlen/2, cp, hexlen) != hexlen/2) if (base16_decode(digest, hexlen/2, cp, hexlen) != hexlen/2)
return -1; return -1;