Commit e2b117eb authored by Kat Magic's avatar Kat Magic Committed by Nick Mathewson
Browse files

Remove the extra space that is sent in certain STREAM messages from the controller. (closes #1583)

parent 7be7f151
Loading
Loading
Loading
Loading
+1 −2
Changes for src/or/control.c: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -3085,8 +3085,7 @@ control_event_stream_status(edge_connection_t *conn, stream_status_event_t tp,
  }

  if (tp == STREAM_EVENT_NEW) {
    tor_snprintf(addrport_buf,sizeof(addrport_buf), "%sSOURCE_ADDR=%s:%d",
                 strlen(reason_buf) ? " " : "",
    tor_snprintf(addrport_buf,sizeof(addrport_buf), " SOURCE_ADDR=%s:%d",
                 TO_CONN(conn)->address, TO_CONN(conn)->port );
  } else {
    addrport_buf[0] = '\0';