summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-09 07:55:48 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-09 07:55:48 +0000
commit3901473bf303af00f47b2f02a1f5cbf2db5e070b (patch)
tree85c9f23e95c138c69925763fe308f9e302996e5e /src/or/control.c
parent2d18d9eefb17204ed68b66d01c9d903fffde17ba (diff)
downloadtor-3901473bf303af00f47b2f02a1f5cbf2db5e070b.tar.gz
tor-3901473bf303af00f47b2f02a1f5cbf2db5e070b.zip
change the interface to config_trial_assign()
svn:r2737
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 0a428e9612..6a714c1ed3 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -202,7 +202,6 @@ handle_control_setconf(connection_t *conn, uint16_t len, char *body)
{
int r;
struct config_line_t *lines=NULL;
- or_options_t *options = get_options();
if (config_get_lines(body, &lines) < 0) {
log_fn(LOG_WARN,"Controller gave us config lines we can't parse.");
@@ -210,7 +209,7 @@ handle_control_setconf(connection_t *conn, uint16_t len, char *body)
return 0;
}
- if ((r=config_trial_assign(&options, lines, 1)) < 0) {
+ if ((r=config_trial_assign(get_options(), lines, 1)) < 0) {
log_fn(LOG_WARN,"Controller gave us config lines that didn't validate.");
if (r==-1) {
send_control_error(conn, ERR_UNRECOGNIZED_CONFIG_KEY,
@@ -223,7 +222,6 @@ handle_control_setconf(connection_t *conn, uint16_t len, char *body)
}
config_free_lines(lines);
- set_options(options); /* put the new one into place */
if (options_act() < 0) { /* acting on them failed. die. */
log_fn(LOG_ERR,"Acting on config options left us in a broken state. Dying.");
exit(1);