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

This commit is contained in:
Kat Magic 2010-06-22 19:04:56 -04:00 committed by Nick Mathewson
parent 7be7f15198
commit e2b117eb80

View File

@ -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';