mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Check for micro < 0, rather than checking "minor" twice.
Bug found with clang scan-build. Fixes bug on f63e06d3dc.
Bug not present in any released Tor.
This commit is contained in:
@@ -5551,7 +5551,7 @@ tor_version_parse_platform(const char *platform,
|
||||
if (strict) {
|
||||
if (router_version->major < 0 ||
|
||||
router_version->minor < 0 ||
|
||||
router_version->minor < 0 ||
|
||||
router_version->micro < 0 ||
|
||||
router_version->patchlevel < 0 ||
|
||||
router_version->svn_revision < 0) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user