mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Use the data, *then* free it. It works so much better.
svn:r2837
This commit is contained in:
parent
0753f630e8
commit
aab929abe0
@ -364,13 +364,13 @@ connection_tls_finish_handshake(connection_t *conn) {
|
||||
}
|
||||
log_fn(LOG_DEBUG,"The router's cert is valid.");
|
||||
crypto_pk_get_digest(identity_rcvd, digest_rcvd);
|
||||
crypto_free_pk_env(identity_rcvd);
|
||||
|
||||
if (crypto_pk_cmp_keys(get_identity_key(), identity_rcvd)<0) {
|
||||
conn->circ_id_type = CIRC_ID_TYPE_LOWER;
|
||||
} else {
|
||||
conn->circ_id_type = CIRC_ID_TYPE_HIGHER;
|
||||
}
|
||||
crypto_free_pk_env(identity_rcvd);
|
||||
|
||||
router = router_get_by_nickname(nickname);
|
||||
if(router && /* we know this nickname */
|
||||
|
Loading…
Reference in New Issue
Block a user