[tcp_wrappers] Improve the support for IPv4 /prefix notation (#698464)

Jan F. Chadima jfch2222 at fedoraproject.org
Tue May 17 06:10:50 UTC 2011


commit 98d0ca190de282c695b179abb722491190030f1c
Author: Jan F <jfch at kuscenko.localdomain6>
Date:   Tue May 17 08:10:25 2011 +0200

    Improve the support for IPv4 /prefix notation (#698464)

 tcp_wrappers-7.6-bug698464.patch |    2 +-
 tcp_wrappers.spec                |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tcp_wrappers-7.6-bug698464.patch b/tcp_wrappers-7.6-bug698464.patch
index c6ba149..fc43dcf 100644
--- a/tcp_wrappers-7.6-bug698464.patch
+++ b/tcp_wrappers-7.6-bug698464.patch
@@ -51,7 +51,7 @@
 +    if ((endptr == str) || (*endptr != '\0') || (prefix > 32))
 +	return INADDR_NONE;
 +
-+    return ntohl(~0UL << (32 - prefix));
++    return (~0UL << (32 - prefix));
 +}
 +
 --- tcp_wrappers_7.6/hosts_access.c.orig	2011-04-20 16:10:25.000000000 -0600
diff --git a/tcp_wrappers.spec b/tcp_wrappers.spec
index 80e8788..6ed01b3 100644
--- a/tcp_wrappers.spec
+++ b/tcp_wrappers.spec
@@ -1,7 +1,7 @@
 Summary: A security tool which acts as a wrapper for TCP daemons
 Name: tcp_wrappers
 Version: 7.6
-Release: 62%{?dist}
+Release: 63%{?dist}
 
 %define LIB_MAJOR 0
 %define LIB_MINOR 7
@@ -151,6 +151,9 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_mandir}/man3/*
 
 %changelog
+* Tue May 17 2011 Jan F. Chadima <jchadima at redhat.com> - 7.6-63
+- Improve the support for IPv4 /prefix notation (#698464)
+
 * Fri May  6 2011 Jan F. Chadima <jchadima at redhat.com> - 7.6-62
 - Improve the support for IPv4 /prefix notation (#698464)
 


More information about the scm-commits mailing list