[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Another case of the same.
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv20062/or
Modified Files:
routerlist.c
Log Message:
Another case of the same.
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- routerlist.c 17 Feb 2004 08:52:03 -0000 1.25
+++ routerlist.c 17 Feb 2004 08:52:57 -0000 1.26
@@ -426,10 +426,13 @@
}
} else {
/* Address is known */
- if ( (addr & tmpe->msk) == (tmpe->addr & tmpe->msk) &&
- (port >= tmpe->prt_min && port <= tmpe->prt_max) ) {
- /* Exact match for the policy */
- match = 1;
+ if ((addr & tmpe->msk) == (tmpe->addr & tmpe->msk)) {
+ if (port >= tmpe->prt_min && port <= tmpe->prt_max) {
+ /* Exact match for the policy */
+ match = 1;
+ } else if (!port) {
+ maybe = 1;
+ }
}
}
if (maybe) {