Преглед на файлове

Fix trivial bug when uploading extra-info documents.

Karsten Loesing преди 16 години
родител
ревизия
20c95a3d21
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/or/router.c

+ 1 - 1
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);