mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
When reporting verbose nicknames in entry_guards_getinfo(), avoid
printing a duplicate "$" in the keys we send. (Reported by mwenge) svn:r8681
This commit is contained in:
@@ -2481,9 +2481,9 @@ entry_guards_getinfo(int use_long_names, const char *question, char **answer)
|
||||
}
|
||||
if (when) {
|
||||
format_iso_time(tbuf, when);
|
||||
tor_snprintf(c, len, "$%s %s %s\n", nbuf, status, tbuf);
|
||||
tor_snprintf(c, len, "%s %s %s\n", nbuf, status, tbuf);
|
||||
} else {
|
||||
tor_snprintf(c, len, "$%s %s\n", nbuf, status);
|
||||
tor_snprintf(c, len, "%s %s\n", nbuf, status);
|
||||
}
|
||||
smartlist_add(sl, c);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user