aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2011-01-25 16:15:42 -0500
committerRoger Dingledine <arma@torproject.org>2011-01-25 16:15:42 -0500
commitd310597440776a9e52f32b48025309a092c0a086 (patch)
tree0be0f94bc43211472e3635b0eaa584ec97b59e93
parent5541610133ca3694701bb0dc81a908567a18f99a (diff)
parent7a446e6754b21eae1b0cfe3b0cf737ac2be964a9 (diff)
downloadtor-d310597440776a9e52f32b48025309a092c0a086.tar.gz
tor-d310597440776a9e52f32b48025309a092c0a086.zip
Merge branch 'maint-0.2.2' into release-0.2.2
-rw-r--r--changes/bug24325
-rw-r--r--changes/bug24335
-rw-r--r--src/or/config.c11
-rw-r--r--src/or/geoip.c2
4 files changed, 17 insertions, 6 deletions
diff --git a/changes/bug2432 b/changes/bug2432
new file mode 100644
index 0000000000..407c56ba9f
--- /dev/null
+++ b/changes/bug2432
@@ -0,0 +1,5 @@
+ o Minor features:
+ - Provide a log message stating which geoip file we're parsing
+ instead of just stating that we're parsing the geoip file.
+ Implements ticket 2432.
+
diff --git a/changes/bug2433 b/changes/bug2433
new file mode 100644
index 0000000000..8e47c4f024
--- /dev/null
+++ b/changes/bug2433
@@ -0,0 +1,5 @@
+ o Major bugfixes:
+ - Don't assert when changing from bridge to relay or vice versa with a controller.
+ The assert happened because we didn't properly initialize our keys in this case.
+ Bugfix on 0.2.2.18, fixes bug 2433. Issue first discovered by bastik.
+
diff --git a/src/or/config.c b/src/or/config.c
index b124db1899..8c1205de47 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1250,7 +1250,6 @@ options_act(or_options_t *old_options)
/* Check for transitions that need action. */
if (old_options) {
-
if ((options->UseEntryGuards && !old_options->UseEntryGuards) ||
(options->ExcludeNodes &&
!routerset_equal(old_options->ExcludeNodes,options->ExcludeNodes)) ||
@@ -1298,11 +1297,12 @@ options_act(or_options_t *old_options)
if (options_transition_affects_workers(old_options, options)) {
log_info(LD_GENERAL,
"Worker-related options changed. Rotating workers.");
+
+ if (init_keys() < 0) {
+ log_warn(LD_BUG,"Error initializing keys; exiting");
+ return -1;
+ }
if (server_mode(options) && !server_mode(old_options)) {
- if (init_keys() < 0) {
- log_warn(LD_BUG,"Error initializing keys; exiting");
- return -1;
- }
ip_address_changed(0);
if (can_complete_circuit || !any_predicted_circuits(time(NULL)))
inform_testing_reachability();
@@ -3810,6 +3810,7 @@ options_transition_affects_workers(or_options_t *old_options,
new_options->ServerDNSSearchDomains ||
old_options->SafeLogging != new_options->SafeLogging ||
old_options->ClientOnly != new_options->ClientOnly ||
+ public_server_mode(old_options) != public_server_mode(new_options) ||
!config_lines_eq(old_options->Logs, new_options->Logs))
return 1;
diff --git a/src/or/geoip.c b/src/or/geoip.c
index d4e279f538..e5694b9618 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -214,7 +214,7 @@ geoip_load_file(const char *filename, or_options_t *options)
smartlist_free(geoip_entries);
}
geoip_entries = smartlist_create();
- log_notice(LD_GENERAL, "Parsing GEOIP file.");
+ log_notice(LD_GENERAL, "Parsing GEOIP file %s.", filename);
while (!feof(f)) {
char buf[512];
if (fgets(buf, (int)sizeof(buf), f) == NULL)