Fix an accidentally removed free in 385853a282, and repair a check.

This commit is contained in:
Nick Mathewson 2009-10-26 23:13:29 -04:00
parent ad525685f6
commit 311315e077

View File

@ -853,13 +853,14 @@ handle_control_loadconf(control_connection_t *conn, uint32_t len,
break;
}
if (msg) {
if (*errstring)
if (errstring)
connection_printf_to_buf(conn, "%s: %s\r\n", msg, errstring);
else
connection_printf_to_buf(conn, "%s\r\n", msg);
} else {
send_control_done(conn);
}
tor_free(errstring);
return 0;
}