]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Disallow reject6 and accept6 lines in descriptors
authorSebastian Hahn <sebastian@torproject.org>
Sun, 6 Mar 2011 17:20:28 +0000 (18:20 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Sun, 6 Mar 2011 17:20:28 +0000 (18:20 +0100)
This fixes a remotely triggerable assert on directory authorities, who
don't handle descriptors with ipv6 contents well yet. We will want to
revert this once we're ready to handle ipv6.

Issue raised by lorth on #tor, who wasn't able to use Tor anymore.
Analyzed with help from Christian Fromme. Fix suggested by arma. Bugfix
on 0.2.1.3-alpha.

src/or/routerparse.c

index aa0687d8835fff70a2007c2d65763d0ea96dc986..d76b00698f9832fb5dba3a91b005ec4d85d2022c 100644 (file)
@@ -222,8 +222,6 @@ typedef struct token_rule_t {
 static token_rule_t routerdesc_token_table[] = {
   T0N("reject",              K_REJECT,              ARGS,    NO_OBJ ),
   T0N("accept",              K_ACCEPT,              ARGS,    NO_OBJ ),
-  T0N("reject6",             K_REJECT6,             ARGS,    NO_OBJ ),
-  T0N("accept6",             K_ACCEPT6,             ARGS,    NO_OBJ ),
   T1_START( "router",        K_ROUTER,              GE(5),   NO_OBJ ),
   T1( "signing-key",         K_SIGNING_KEY,         NO_ARGS, NEED_KEY_1024 ),
   T1( "onion-key",           K_ONION_KEY,           NO_ARGS, NEED_KEY_1024 ),