diff options
author | Roger Dingledine <arma@torproject.org> | 2005-05-20 22:14:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-05-20 22:14:33 +0000 |
commit | d22c141659b49358858cbbd18294d11bcc4dcfb3 (patch) | |
tree | 1b95d023fdac061f8249e11117cbc1625921eaa8 | |
parent | c95677725a961fbeecfff2f46757f41fb487dff9 (diff) | |
download | tor-d22c141659b49358858cbbd18294d11bcc4dcfb3.tar.gz tor-d22c141659b49358858cbbd18294d11bcc4dcfb3.zip |
we were leaking 616 bytes every time somebody established us as
an intro point for their hidden service.
svn:r4276
-rw-r--r-- | src/or/rendmid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c index f2e3b0e8ab..fe6935a8f9 100644 --- a/src/or/rendmid.c +++ b/src/or/rendmid.c @@ -70,6 +70,9 @@ rend_mid_establish_intro(circuit_t *circ, const char *request, size_t request_le goto err; } + crypto_free_pk_env(pk); /* don't need it anymore */ + pk = NULL; /* so we don't free it again if err */ + base32_encode(serviceid, REND_SERVICE_ID_LEN+1, pk_digest,10); /* Close any other intro circuits with the same pk. */ |