aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/bug2683a3
-rw-r--r--changes/bug27576
-rw-r--r--changes/log-typo-2011-03-15-013
-rw-r--r--src/or/connection.c2
-rw-r--r--src/or/directory.c2
-rw-r--r--src/or/rendclient.c2
-rw-r--r--src/or/routerparse.c2
7 files changed, 17 insertions, 3 deletions
diff --git a/changes/bug2683a b/changes/bug2683a
new file mode 100644
index 000000000..2fe308b03
--- /dev/null
+++ b/changes/bug2683a
@@ -0,0 +1,3 @@
+ o Minor features
+ - Log the source of a rejected POSTed v3 networkstatus vote.
+
diff --git a/changes/bug2757 b/changes/bug2757
new file mode 100644
index 000000000..f947afaeb
--- /dev/null
+++ b/changes/bug2757
@@ -0,0 +1,6 @@
+ - Minor bugfixes
+ o Avoid a double-mark-for-free warning when failing to attach a
+ transparent proxy connection. (We thought we had fixed this in
+ 0.2.2.23-alpha, but it turns out our fix was checking the wrong
+ connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
+ bug) and 0.2.2.23-alpha (the incorrect fix).
diff --git a/changes/log-typo-2011-03-15-01 b/changes/log-typo-2011-03-15-01
new file mode 100644
index 000000000..3830df388
--- /dev/null
+++ b/changes/log-typo-2011-03-15-01
@@ -0,0 +1,3 @@
+ o Minor bugfixes
+ - Fix a minor typo in a log message. Bugfix on 0.2.2.6-alpha.
+
diff --git a/src/or/connection.c b/src/or/connection.c
index 86ed45e18..c65c91b73 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1178,7 +1178,7 @@ connection_handle_listener_read(connection_t *conn, int new_type)
}
if (connection_init_accepted_conn(newconn, conn->type) < 0) {
- if (! conn->marked_for_close)
+ if (! newconn->marked_for_close)
connection_mark_for_close(newconn);
return 0;
}
diff --git a/src/or/directory.c b/src/or/directory.c
index f8d587f35..00de1f2f8 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3259,6 +3259,8 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
write_http_status_line(conn, status, "Vote stored");
} else {
tor_assert(msg);
+ log_warn(LD_DIRSERV, "Rejected vote from %s (\"%s\").",
+ conn->_base.address, msg);
write_http_status_line(conn, status, msg);
}
goto done;
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index ba5987c69..01b2b62d3 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -403,7 +403,7 @@ directory_get_from_hs_dir(const char *desc_id, const rend_data_t *rend_query)
tor_assert(rend_query);
/* Determine responsible dirs. Even if we can't get all we want,
* work with the ones we have. If it's empty, we'll notice below. */
- (int) hid_serv_get_responsible_directories(responsible_dirs, desc_id);
+ hid_serv_get_responsible_directories(responsible_dirs, desc_id);
base32_encode(desc_id_base32, sizeof(desc_id_base32),
desc_id, DIGEST_LEN);
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 28ce97ebd..e0605dcd4 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -2822,7 +2822,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
ns->flavor = flav = flavor;
}
if (flav != FLAV_NS && ns_type != NS_TYPE_CONSENSUS) {
- log_warn(LD_DIR, "Flavor found on non-consenus networkstatus.");
+ log_warn(LD_DIR, "Flavor found on non-consensus networkstatus.");
goto err;
}