[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] When copying routerinfo, copy descriptor too to prevent lat...



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)