[or-cvs] Use the data, *then* free it. It works so much better.
Nick Mathewson
nickm at seul.org
Sat Nov 13 23:27:52 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv18508/src/or
Modified Files:
connection_or.c
Log Message:
Use the data, *then* free it. It works so much better.
Index: connection_or.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_or.c,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- connection_or.c 12 Nov 2004 16:39:02 -0000 1.137
+++ connection_or.c 13 Nov 2004 23:27:50 -0000 1.138
@@ -364,13 +364,13 @@
}
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 */
More information about the tor-commits
mailing list