diff options
author | Roger Dingledine <arma@torproject.org> | 2009-11-21 22:59:18 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-11-21 22:59:18 -0500 |
commit | 7b6b931ccc6af626493beacdfefa3e114eb8bc7c (patch) | |
tree | d896b024c31e7cd34f486bb0cb06d7f39b046edb /src/or | |
parent | 01a9cc0413fe89f14d753a58e116ef933758684c (diff) | |
download | tor-7b6b931ccc6af626493beacdfefa3e114eb8bc7c.tar.gz tor-7b6b931ccc6af626493beacdfefa3e114eb8bc7c.zip |
stop assuming that our downcasts have a struct offset of 0
shouldn't actually change anything, but who knows.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/circuitlist.c | 2 | ||||
-rw-r--r-- | src/or/connection.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 560bec55f1..3efeabe786 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -504,7 +504,7 @@ circuit_free(circuit_t *circ) * "active" checks will be violated. */ cell_queue_clear(&circ->n_conn_cells); - memset(circ, 0xAA, memlen); /* poison memory */ + memset(mem, 0xAA, memlen); /* poison memory */ tor_free(mem); } diff --git a/src/or/connection.c b/src/or/connection.c index aca9b8b116..48740412c4 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(conn, 0xAA, memlen); /* poison memory */ + memset(mem, 0xAA, memlen); /* poison memory */ tor_free(mem); } |