]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
clobber connections with different number than we clobber circuits
authorRoger Dingledine <arma@torproject.org>
Sun, 22 Nov 2009 04:02:10 +0000 (23:02 -0500)
committerRoger Dingledine <arma@torproject.org>
Sun, 22 Nov 2009 04:02:10 +0000 (23:02 -0500)
ChangeLog
src/or/connection.c

index 3fa7b387e3c059bbe1bd30cfa981d9c2f08dca6a..2b55d768390c29de84c5ef7c03e8ea031896a9df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 48740412c4a1437851d169cfc0f6e092a8090928..0600d9711f5f470ff925256e5ed70513cfa06e83 100644 (file)
@@ -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);
 }