]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Explicitly set bucket_cfg to NULL after we freed it
authorSebastian Hahn <sebastian@torproject.org>
Thu, 1 Sep 2011 10:24:05 +0000 (12:24 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 1 Sep 2011 10:34:16 +0000 (12:34 +0200)
This should fix bug 3888.

src/or/connection.c

index 76159523865ddee4ff0a76daf1157c4a1da13a8d..1b227d7e74b889a9c11950fece3d9995d7366632 100644 (file)
@@ -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