mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
scan-build: circuit_cpath_support_ntor had a dead initialization
We were initializing cpath twice, which doesn't make sense.
This commit is contained in:
@@ -277,9 +277,9 @@ circuit_rep_hist_note_result(origin_circuit_t *circ)
|
||||
static int
|
||||
circuit_cpath_supports_ntor(const origin_circuit_t *circ)
|
||||
{
|
||||
crypt_path_t *head = circ->cpath, *cpath = circ->cpath;
|
||||
crypt_path_t *head, *cpath;
|
||||
|
||||
cpath = head;
|
||||
cpath = head = circ->cpath;
|
||||
do {
|
||||
if (cpath->extend_info &&
|
||||
!tor_mem_is_zero(
|
||||
|
||||
Reference in New Issue
Block a user