aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-10-23 12:30:16 -0400
committerNick Mathewson <nickm@torproject.org>2011-10-23 13:23:53 -0400
commit80cf342e476f21b607f2088a6565bee93b1e08b0 (patch)
tree98c44c601330f6a2de461d702d74bf4d13055638 /src/common
parent0c2a3601e8283f3a63f624cfe2c54d21cae62fa3 (diff)
downloadtor-80cf342e476f21b607f2088a6565bee93b1e08b0.tar
tor-80cf342e476f21b607f2088a6565bee93b1e08b0.tar.gz
Fix memory leak in prop176 code
This fixes part of bug4252. Bug not in any released version.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tortls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 9a3c02b5b..e540bfdc1 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -864,8 +864,8 @@ tor_tls_get_my_client_auth_key(void)
}
/**
- * Return the public key that a cetificate certifies. Return NULL if the
- * cert's key is not RSA.
+ * Return a newly allocated copy of the public key that a certificate
+ * certifies. Return NULL if the cert's key is not RSA.
*/
crypto_pk_env_t *
tor_tls_cert_get_key(tor_cert_t *cert)