mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Set handshake_state to NULL before appending cpath hops
svn:r1505
This commit is contained in:
parent
6290d027c9
commit
ef438b894c
@ -204,6 +204,9 @@ rend_client_receive_rendezvous(circuit_t *circ, const char *request, int request
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
crypto_dh_free(hop->handshake_state);
|
||||||
|
hop->handshake_state = NULL;
|
||||||
|
|
||||||
/* All is well. Extend the circuit. */
|
/* All is well. Extend the circuit. */
|
||||||
circ->purpose = CIRCUIT_PURPOSE_C_REND_JOINED;
|
circ->purpose = CIRCUIT_PURPOSE_C_REND_JOINED;
|
||||||
hop->state = CPATH_STATE_OPEN;
|
hop->state = CPATH_STATE_OPEN;
|
||||||
|
@ -588,6 +588,9 @@ rend_service_rendezvous_is_ready(circuit_t *circuit)
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
crypto_dh_free(hop->handshake_state);
|
||||||
|
hop->handshake_state = NULL;
|
||||||
|
|
||||||
/* Append the cpath entry. */
|
/* Append the cpath entry. */
|
||||||
hop->state = CPATH_STATE_OPEN;
|
hop->state = CPATH_STATE_OPEN;
|
||||||
onion_append_to_cpath(&circuit->cpath, hop);
|
onion_append_to_cpath(&circuit->cpath, hop);
|
||||||
|
Loading…
Reference in New Issue
Block a user