summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-30 03:41:06 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-30 03:41:06 +0000
commitebab451eedf543ab2f9545fe80f43c0fefbe7862 (patch)
tree69fa95c639dbcf01ab98561e320ed1d2779b623e /src/or
parentfd68834b17fd5a83101f47c12102aec4517b7b27 (diff)
downloadtor-ebab451eedf543ab2f9545fe80f43c0fefbe7862.tar.gz
tor-ebab451eedf543ab2f9545fe80f43c0fefbe7862.zip
Make version parsing tests pass
svn:r3028
Diffstat (limited to 'src/or')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index f9b5879010..7e54f6ee9a 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1487,7 +1487,7 @@ int tor_version_parse(const char *s, tor_version_t *out)
if (*cp == '-' || *cp == '.')
++cp;
strlcpy(out->status_tag, cp, sizeof(out->status_tag));
- if (0==strcmp(cp, "cvs") && out->major == 0 && out->minor == 0) {
+ if (0==strcmp(cp, "cvs")) {
out->cvs = IS_CVS;
} else {
out->cvs = IS_NOT_CVS;