diff options
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index e0d0360d05..bc5cfeea82 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -222,8 +222,12 @@ handle_control_setconf(connection_t *conn, uint16_t len, char *body) return 0; } - set_options(options); /* put the new one into place */ 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); + } send_control_done(conn); return 0; } |