diff options
author | Roger Dingledine <arma@torproject.org> | 2012-03-14 02:40:04 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2012-03-14 02:40:04 -0400 |
commit | 12594f27db7fce73db6b1e5f6f758b46265e36c7 (patch) | |
tree | 8b5165bcb5e686f83999dc72032928d554564c68 /src/or/config.c | |
parent | 279f03e76f3f7c7ecf029334afe2de9b6f9b20a9 (diff) | |
download | tor-12594f27db7fce73db6b1e5f6f758b46265e36c7.tar tor-12594f27db7fce73db6b1e5f6f758b46265e36c7.tar.gz |
Stop discarding command-line arguments when TestingTorNetwork is set
Discovered by Kevin Bauer. Fixes bug 5373; bugfix on 0.2.3.9-alpha,
where task 4552 added support for two layers of torrc files.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 3a7bf65e3..0c699b021 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -4660,6 +4660,13 @@ options_init_from_string(const char *cf_defaults, const char *cf, if (i==0) newdefaultoptions = options_dup(&options_format, newoptions); } + /* Assign command-line variables a second time too */ + retval = config_assign(&options_format, newoptions, + global_cmdline_options, 0, 0, msg); + if (retval < 0) { + err = SETOPT_ERR_PARSE; + goto err; + } } /* Validate newoptions */ |