aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-09-01 12:24:05 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-09-01 12:34:16 +0200
commitebb5f8df368c29dd26080ba057ffb6611aee401b (patch)
tree36b0e959f384632c6bb33a7f9c60e5ff7640d9a0 /src
parenta500389904c992e492db0c219e5019ed44704c29 (diff)
downloadtor-ebb5f8df368c29dd26080ba057ffb6611aee401b.tar
tor-ebb5f8df368c29dd26080ba057ffb6611aee401b.tar.gz
Explicitly set bucket_cfg to NULL after we freed it
This should fix bug 3888.
Diffstat (limited to 'src')
-rw-r--r--src/or/connection.c1
1 files changed, 1 insertions, 0 deletions
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