mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
This commit is contained in:
commit
1d7beea2ab
4
changes/fmt_addr
Normal file
4
changes/fmt_addr
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- When unable to format an address as a string, report its value
|
||||||
|
as "???" rather than reusing the last formatted address. Bugfix
|
||||||
|
on 0.2.1.5-alpha.
|
@ -958,8 +958,10 @@ fmt_addr(const tor_addr_t *addr)
|
|||||||
{
|
{
|
||||||
static char buf[TOR_ADDR_BUF_LEN];
|
static char buf[TOR_ADDR_BUF_LEN];
|
||||||
if (!addr) return "<null>";
|
if (!addr) return "<null>";
|
||||||
tor_addr_to_str(buf, addr, sizeof(buf), 0);
|
if (tor_addr_to_str(buf, addr, sizeof(buf), 0))
|
||||||
return buf;
|
return buf;
|
||||||
|
else
|
||||||
|
return "???";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Like fmt_addr(), but takes <b>addr</b> as a host-order IPv4
|
/** Like fmt_addr(), but takes <b>addr</b> as a host-order IPv4
|
||||||
|
Loading…
Reference in New Issue
Block a user