[or-cvs] [tor/master] Fix trivial bug when uploading extra-info documents.
Nick Mathewson
nickm at seul.org
Wed Aug 26 15:36:42 UTC 2009
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Fri, 14 Aug 2009 16:24:11 +0200
Subject: Fix trivial bug when uploading extra-info documents.
Commit: 20c95a3d21d7c635a269d62b5c010a516a4c98c7
---
src/or/router.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/router.c b/src/or/router.c
index e118197..e6d6cc3 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1960,7 +1960,7 @@ extrainfo_dump_to_string(char *s, size_t maxlen, extrainfo_t *extrainfo,
extrainfo_t *ei_tmp;
cp = s_dup = tor_strdup(s);
ei_tmp = extrainfo_parse_entry_from_string(cp, NULL, 1, NULL);
- if (ei_tmp) {
+ if (!ei_tmp) {
log_err(LD_BUG,
"We just generated an extrainfo descriptor we can't parse.");
log_err(LD_BUG, "Descriptor was: <<%s>>", s);
--
1.5.6.5
More information about the tor-commits
mailing list