dgaudet 99/08/05 18:37:59
Modified: src CHANGES
src/modules/standard mod_access.c
Log:
CIDR addresses such as a.b.c.d/24 where d != 0 weren't handled
properly... mask off the "host" bits of the address.
PR: 4770
Submitted by: "Paul J. Reder" <[EMAIL PROTECTED]>
Revision Changes Path
1.1410 +4 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.1409
retrieving revision 1.1410
diff -u -r1.1409 -r1.1410
--- CHANGES 1999/08/03 09:27:25 1.1409
+++ CHANGES 1999/08/06 01:37:56 1.1410
@@ -1,5 +1,9 @@
Changes with Apache 1.3.8
+ *) CIDR addresses such as a.b.c.d/24 where d != 0 weren't handled
+ properly in mod_access.
+ ["Paul J. Reder" <[EMAIL PROTECTED]>] PR#4770
+
*) RewriteLock/RewriteMap didn't work properly with virtual hosts.
[Dmitry Khrustalev <[EMAIL PROTECTED]>] PR#3874
1.39 +1 -1 apache-1.3/src/modules/standard/mod_access.c
Index: mod_access.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_access.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- mod_access.c 1999/01/01 19:05:06 1.38
+++ mod_access.c 1999/08/06 01:37:58 1.39
@@ -202,7 +202,7 @@
mask = htonl(mask);
}
a->x.ip.mask = mask;
-
+ a->x.ip.net = (a->x.ip.net & mask); /* pjr - This fixes PR 4770 */
}
else if (ap_isdigit(*where) && is_ip(where)) {
/* legacy syntax for ip addrs: a.b.c. ==> a.b.c.0/24 for example */