Commit 42507429 authored by teor's avatar teor Committed by Nick Mathewson
Browse files

channeltls: Stop truncating IPv6 in logs

Stop truncating IPv6 addresses and ports in channel and connection logs.

Fixes bug 33918; bugfix on 0.2.4.4-alpha.
parent 2e80d7f1
Loading
Loading
Loading
Loading

changes/bug33918

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor bugfixes (IPv6, logging):
    - Stop truncating IPv6 addresses and ports in channel and connection logs.
      Fixes bug 33918; bugfix on 0.2.4.4-alpha.
+2 −1
Original line number Diff line number Diff line
@@ -563,7 +563,8 @@ channel_tls_get_transport_name_method(channel_t *chan, char **transport_out)
static const char *
channel_tls_get_remote_descr_method(channel_t *chan, int flags)
{
#define MAX_DESCR_LEN 32
  /* IPv6 address, colon, port */
#define MAX_DESCR_LEN (TOR_ADDR_BUF_LEN + 1 + 5)

  static char buf[MAX_DESCR_LEN + 1];
  channel_tls_t *tlschan = BASE_CHAN_TO_TLS(chan);