mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
stop assuming that our downcasts have a struct offset of 0
shouldn't actually change anything, but who knows.
This commit is contained in:
parent
01a9cc0413
commit
7b6b931ccc
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user