aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-01 10:45:34 -0400
committerNick Mathewson <nickm@torproject.org>2011-09-01 10:45:34 -0400
commit9f144144e383169ba6a0de78fde50c0d1f662116 (patch)
treee22254bad935cf6d829627c54fc6441f31c0e4b5
parentcfa9ee5fe708539965f46a31b5d2abe4950179af (diff)
parentab9874dba46b3eae8e201a45926ddeb133903ebc (diff)
downloadtor-9f144144e383169ba6a0de78fde50c0d1f662116.tar
tor-9f144144e383169ba6a0de78fde50c0d1f662116.tar.gz
Merge branch 'bug3888'
-rw-r--r--changes/bug38884
-rw-r--r--src/or/connection.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug3888 b/changes/bug3888
new file mode 100644
index 000000000..d3a5e2711
--- /dev/null
+++ b/changes/bug3888
@@ -0,0 +1,4 @@
+ o Minor bugfixes (bufferevents, fix on 0.2.3.1-alpha):
+ - Fix a use-after-free error with per-connection rate-limiting
+ buckets. Fixes bug 3888.
+
diff --git a/src/or/connection.c b/src/or/connection.c
index 761595238..1b227d7e7 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -524,6 +524,7 @@ _connection_free(connection_t *conn)
#ifdef USE_BUFFEREVENTS
if (conn->type == CONN_TYPE_OR && TO_OR_CONN(conn)->bucket_cfg) {
ev_token_bucket_cfg_free(TO_OR_CONN(conn)->bucket_cfg);
+ TO_OR_CONN(conn)->bucket_cfg = NULL;
}
#endif