diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-08-14 16:24:11 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-08-17 13:30:10 +0200 |
commit | 20c95a3d21d7c635a269d62b5c010a516a4c98c7 (patch) | |
tree | f29054eb4043754bb667c0ef9f1381164edc9167 /src | |
parent | 9179bcb923f150ed2a3e62ab816709d7b0177f05 (diff) | |
download | tor-20c95a3d21d7c635a269d62b5c010a516a4c98c7.tar.gz tor-20c95a3d21d7c635a269d62b5c010a516a4c98c7.zip |
Fix trivial bug when uploading extra-info documents.
Diffstat (limited to 'src')
-rw-r--r-- | 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 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); |