]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Allow microdescs to be up to 2k. Partial fix for 6404.
authorNick Mathewson <nickm@torproject.org>
Tue, 31 Jul 2012 14:48:35 +0000 (10:48 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 31 Jul 2012 14:48:35 +0000 (10:48 -0400)
changes/bug6404 [new file with mode: 0644]
src/or/dirvote.c

diff --git a/changes/bug6404 b/changes/bug6404
new file mode 100644 (file)
index 0000000..d01964d
--- /dev/null
@@ -0,0 +1,7 @@
+  o Minor bugfixes:
+
+    - Increase the maximum length of microdescriptor we are willing to
+      generate from 1K to 2K. Occasionally this is needed for routers
+      with complex policies or family declarations. Partial fix for
+      bug 6404; fix on 0.2.2.6-alpha.
+
index 79958739a5f98d754344a561651269e7bdd8a6e0..85ea85ce7397b01181f0c68371ca131b5f56046d 100644 (file)
@@ -3502,7 +3502,7 @@ dirvote_create_microdescriptor(const routerinfo_t *ri)
 {
   microdesc_t *result = NULL;
   char *key = NULL, *summary = NULL, *family = NULL;
-  char buf[1024];
+  char buf[2048];
   size_t keylen;
   char *out = buf, *end = buf+sizeof(buf);