[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] When copying routerinfo, copy descriptor too to prevent lat...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] When copying routerinfo, copy descriptor too to prevent lat...
- From: nickm@xxxxxxxx (Nick Mathewson)
- Date: Sun, 27 Feb 2005 22:37:30 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 27 Feb 2005 22:37:57 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv10686/src/or
Modified Files:
routerlist.c
Log Message:
When copying routerinfo, copy descriptor too to prevent later double-free.
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -d -r1.216 -r1.217
--- routerlist.c 27 Feb 2005 09:47:01 -0000 1.216
+++ routerlist.c 28 Feb 2005 03:37:27 -0000 1.217
@@ -694,6 +694,8 @@
r->address = tor_strdup(r->address);
r->nickname = tor_strdup(r->nickname);
r->platform = tor_strdup(r->platform);
+ if (r->signed_descriptor)
+ r->signed_descriptor = tor_strdup(r->signed_descriptor);
if (r->onion_pkey)
r->onion_pkey = crypto_pk_dup_key(r->onion_pkey);
if (r->identity_pkey)