actually use the rate-limiting string

previously we just allocated the string and then freed it.
This commit is contained in:
Roger Dingledine 2012-10-03 13:03:09 -04:00
parent 65e85dba1b
commit 05f6f8f26d

View File

@ -1513,8 +1513,8 @@ circuit_get_open_circ_or_launch(entry_connection_t *conn,
if ((m = rate_limit_log(&delay_limit, approx_time()))) { if ((m = rate_limit_log(&delay_limit, approx_time()))) {
log_notice(LD_APP, "We'd like to launch a circuit to handle a " log_notice(LD_APP, "We'd like to launch a circuit to handle a "
"connection, but we already have %d general-purpose client " "connection, but we already have %d general-purpose client "
"circuits pending. Waiting until some finish.", "circuits pending. Waiting until some finish.%s",
n_pending); n_pending, m);
tor_free(m); tor_free(m);
} }
return 0; return 0;