Blame SOURCES/tcp_wrappers_7.6-249430.patch

23cc51
diff -up tcp_wrappers_7.6/hosts_access.c.patch22 tcp_wrappers_7.6/hosts_access.c
23cc51
--- tcp_wrappers_7.6/hosts_access.c.patch22	2008-08-29 09:45:12.000000000 +0200
23cc51
+++ tcp_wrappers_7.6/hosts_access.c	2008-08-29 09:45:12.000000000 +0200
23cc51
@@ -419,7 +419,9 @@ char   *string;
23cc51
     if ((addr = dot_quad_addr(string)) == INADDR_NONE)
23cc51
 	return (NO);
23cc51
     if ((net = dot_quad_addr(net_tok)) == INADDR_NONE
23cc51
-	|| (mask = dot_quad_addr(mask_tok)) == INADDR_NONE) {
23cc51
+	|| ((mask = dot_quad_addr(mask_tok)) == INADDR_NONE
23cc51
+	    && strcmp(mask_tok, "255.255.255.255"))) {
23cc51
+	/* 255.255.255.255 == INADDR_NONE, separate check needed. TJ. */
23cc51
 	tcpd_warn("bad net/mask expression: %s/%s", net_tok, mask_tok);
23cc51
 	return (NO);				/* not tcpd_jump() */
23cc51
     }