From: Karsten Loesing Date: Fri, 14 Aug 2009 14:24:11 +0000 (+0200) Subject: Fix trivial bug when uploading extra-info documents. X-Git-Tag: tor-0.2.2.1-alpha~9^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20c95a3d21d7c635a269d62b5c010a516a4c98c7;p=thirdparty%2Ftor.git Fix trivial bug when uploading extra-info documents. --- diff --git a/src/or/router.c b/src/or/router.c index e1181971c4..e6d6cc37b2 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);