[or-cvs] r11659: fixed a bug in descriptor replication (tor/branches/114-dist-storage/src/or)

kloesing at seul.org kloesing at seul.org
Thu Sep 27 09:08:09 UTC 2007


Author: kloesing
Date: 2007-09-27 05:08:09 -0400 (Thu, 27 Sep 2007)
New Revision: 11659

Modified:
   tor/branches/114-dist-storage/src/or/rendcommon.c
Log:
fixed a bug in descriptor replication

Modified: tor/branches/114-dist-storage/src/or/rendcommon.c
===================================================================
--- tor/branches/114-dist-storage/src/or/rendcommon.c	2007-09-27 05:20:26 UTC (rev 11658)
+++ tor/branches/114-dist-storage/src/or/rendcommon.c	2007-09-27 09:08:09 UTC (rev 11659)
@@ -995,7 +995,7 @@
     e->received = time(NULL);
     e->parsed = parsed;
     e->desc = tor_malloc(encoded_size + 1);
-    strlcpy(e->desc, desc, encoded_size + 1);
+    strlcpy(e->desc, current_desc, encoded_size + 1);
     e->len = encoded_size;
     log_info(LD_REND, "Successfully stored service descriptor with desc ID "
                       "'%s' and len %d.", desc_id_base32, encoded_size);



More information about the tor-commits mailing list