]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Increase POLICY_BUF_LEN to 72 to accomodate IPv6 exit policy items.
authorNick Mathewson <nickm@torproject.org>
Mon, 26 Aug 2013 15:30:09 +0000 (11:30 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 26 Aug 2013 15:30:09 +0000 (11:30 -0400)
Fixes bug 9596; bugfix on 0.2.4.7-alpha.

changes/bug9596 [new file with mode: 0644]
src/or/policies.h

diff --git a/changes/bug9596 b/changes/bug9596
new file mode 100644 (file)
index 0000000..b3d138e
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Correctly log long IPv6 exit policy, instead of truncating them
+      or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
+
index c0e7a9efcea1d6b43d08fb576b73590616184e7b..facbbb6b5ab996c2d02e6de008c9e383a1836029 100644 (file)
 #ifndef TOR_POLICIES_H
 #define TOR_POLICIES_H
 
-/* (length of "accept 255.255.255.255/255.255.255.255:65535-65535\n" plus a
- * NUL.)
+/* (length of
+ * "accept6 [ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]/128:65535-65535\n"
+ * plus a terminating NUL, rounded up to a nice number.)
  */
-#define POLICY_BUF_LEN 52
+#define POLICY_BUF_LEN 72
 
 int firewall_is_fascist_or(void);
 int fascist_firewall_allows_address_or(const tor_addr_t *addr, uint16_t port);