mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix an accidentally removed free in 385853a282
, and repair a check.
This commit is contained in:
parent
ad525685f6
commit
311315e077
@ -853,13 +853,14 @@ handle_control_loadconf(control_connection_t *conn, uint32_t len,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (msg) {
|
if (msg) {
|
||||||
if (*errstring)
|
if (errstring)
|
||||||
connection_printf_to_buf(conn, "%s: %s\r\n", msg, errstring);
|
connection_printf_to_buf(conn, "%s: %s\r\n", msg, errstring);
|
||||||
else
|
else
|
||||||
connection_printf_to_buf(conn, "%s\r\n", msg);
|
connection_printf_to_buf(conn, "%s\r\n", msg);
|
||||||
} else {
|
} else {
|
||||||
send_control_done(conn);
|
send_control_done(conn);
|
||||||
}
|
}
|
||||||
|
tor_free(errstring);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user