[tor/master] Explicitly set bucket_cfg to NULL after we freed it

1 Sep
2011
1 Sep
'11
2:46 p.m.
commit ebb5f8df368c29dd26080ba057ffb6611aee401b Author: Sebastian Hahn <sebastian@torproject.org> Date: Thu Sep 1 12:24:05 2011 +0200 Explicitly set bucket_cfg to NULL after we freed it This should fix bug 3888. --- src/or/connection.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/or/connection.c b/src/or/connection.c index 7615952..1b227d7 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
5008
Age (days ago)
5008
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org