Skip to content
Snippets Groups Projects
Commit a5f6cb90 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Increase POLICY_BUF_LEN to 72 to accomodate IPv6 exit policy items.

Fixes bug 9596; bugfix on 0.2.4.7-alpha.
parent a5610cfa
No related branches found
No related tags found
No related merge requests found
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.
......@@ -12,10 +12,11 @@
#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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment