summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-13 23:27:50 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-13 23:27:50 +0000
commitaab929abe06c6458ddd794bd34409970b35509d6 (patch)
treec6e3dcd54686c6a8192e774211ade3c3ab766371 /src
parent0753f630e8bbdf696903c0308930c7a13e5109e9 (diff)
downloadtor-aab929abe06c6458ddd794bd34409970b35509d6.tar.gz
tor-aab929abe06c6458ddd794bd34409970b35509d6.zip
Use the data, *then* free it. It works so much better.
svn:r2837
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_or.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 1061410be7..a5aaeac29e 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -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 */