diff options
author | Roger Dingledine <arma@torproject.org> | 2009-11-21 23:02:10 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-11-21 23:02:10 -0500 |
commit | 4f8b36a1e2dbcfeaf0c5c31a92aa0f26f365b890 (patch) | |
tree | aae24bfd8107917f3cc980621103a70ddce66dab | |
parent | 7b6b931ccc6af626493beacdfefa3e114eb8bc7c (diff) | |
download | tor-4f8b36a1e2dbcfeaf0c5c31a92aa0f26f365b890.tar.gz tor-4f8b36a1e2dbcfeaf0c5c31a92aa0f26f365b890.zip |
clobber connections with different number than we clobber circuits
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/or/connection.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -2,6 +2,10 @@ Changes in version 0.2.2.7-alpha - 2009-??-?? o Minor bugfixes: - Fix compilation on OSX 10.3, which has a stub mlockall() but hides it. Bugfix on 0.2.2.6-alpha. + - After we free an internal connection structure, overwrite it + with a different memory value than we use for overwriting a freed + internal circuit structure. Should help with debugging. Suggested + by bug 1055. Changes in version 0.2.2.6-alpha - 2009-11-19 diff --git a/src/or/connection.c b/src/or/connection.c index 48740412c4..0600d9711f 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -423,7 +423,7 @@ _connection_free(connection_t *conn) connection_or_remove_from_identity_map(TO_OR_CONN(conn)); } - memset(mem, 0xAA, memlen); /* poison memory */ + memset(mem, 0xCC, memlen); /* poison memory */ tor_free(mem); } |