From 20c95a3d21d7c635a269d62b5c010a516a4c98c7 Mon Sep 17 00:00:00 2001 From: Karsten Loesing Date: Fri, 14 Aug 2009 16:24:11 +0200 Subject: Fix trivial bug when uploading extra-info documents. --- src/or/router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf