[or-cvs] remove some redundant code now that we compress exit policies

arma at seul.org arma at seul.org
Wed Mar 8 19:34:37 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	router.c 
Log Message:
remove some redundant code now that we compress exit policies
after parsing them


Index: router.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -p -d -r1.249 -r1.250
--- router.c	20 Feb 2006 01:21:48 -0000	1.249
+++ router.c	8 Mar 2006 19:34:34 -0000	1.250
@@ -1155,9 +1155,6 @@ router_dump_router_to_string(char *s, si
         return -1;
       written += result;
     }
-    if (tmpe->msk == 0 && tmpe->prt_min <= 1 && tmpe->prt_max == 65535)
-      /* This was a catch-all rule, so future rules are irrelevant. */
-      break;
   } /* end for */
   if (written+256 > maxlen) /* Not enough room for signature. */
     return -1;



More information about the tor-commits mailing list