You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
734 B
15 lines
734 B
diff -up tcp_wrappers_7.6/hosts_access.c.patch22 tcp_wrappers_7.6/hosts_access.c
|
|
--- tcp_wrappers_7.6/hosts_access.c.patch22 2008-08-29 09:45:12.000000000 +0200
|
|
+++ tcp_wrappers_7.6/hosts_access.c 2008-08-29 09:45:12.000000000 +0200
|
|
@@ -419,7 +419,9 @@ char *string;
|
|
if ((addr = dot_quad_addr(string)) == INADDR_NONE)
|
|
return (NO);
|
|
if ((net = dot_quad_addr(net_tok)) == INADDR_NONE
|
|
- || (mask = dot_quad_addr(mask_tok)) == INADDR_NONE) {
|
|
+ || ((mask = dot_quad_addr(mask_tok)) == INADDR_NONE
|
|
+ && strcmp(mask_tok, "255.255.255.255"))) {
|
|
+ /* 255.255.255.255 == INADDR_NONE, separate check needed. TJ. */
|
|
tcpd_warn("bad net/mask expression: %s/%s", net_tok, mask_tok);
|
|
return (NO); /* not tcpd_jump() */
|
|
}
|