15 lines
710 B
Diff
15 lines
710 B
Diff
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
|
|
@@ -426,7 +426,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. */
|
|
#ifndef INET6
|
|
tcpd_warn("bad net/mask expression: %s/%s", net_tok, mask_tok);
|
|
#endif
|