mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Clean keys on stack in rend_service_rendezvous_has_opened()
This commit is contained in:
parent
88c5d3ca55
commit
276f95182c
@ -1847,9 +1847,16 @@ rend_service_rendezvous_has_opened(origin_circuit_t *circuit)
|
||||
/* Change the circuit purpose. */
|
||||
circuit_change_purpose(TO_CIRCUIT(circuit), CIRCUIT_PURPOSE_S_REND_JOINED);
|
||||
|
||||
return;
|
||||
goto done;
|
||||
|
||||
err:
|
||||
circuit_mark_for_close(TO_CIRCUIT(circuit), reason);
|
||||
done:
|
||||
memset(buf, 0, sizeof(buf));
|
||||
memset(serviceid, 0, sizeof(serviceid));
|
||||
memset(hexcookie, 0, sizeof(hexcookie));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user