Improve the support for IPv4 /prefix notation (#698464)
This commit is contained in:
parent
21bb70e1eb
commit
98d0ca190d
@ -51,7 +51,7 @@
|
|||||||
+ if ((endptr == str) || (*endptr != '\0') || (prefix > 32))
|
+ if ((endptr == str) || (*endptr != '\0') || (prefix > 32))
|
||||||
+ return INADDR_NONE;
|
+ 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
|
--- tcp_wrappers_7.6/hosts_access.c.orig 2011-04-20 16:10:25.000000000 -0600
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A security tool which acts as a wrapper for TCP daemons
|
Summary: A security tool which acts as a wrapper for TCP daemons
|
||||||
Name: tcp_wrappers
|
Name: tcp_wrappers
|
||||||
Version: 7.6
|
Version: 7.6
|
||||||
Release: 62%{?dist}
|
Release: 63%{?dist}
|
||||||
|
|
||||||
%define LIB_MAJOR 0
|
%define LIB_MAJOR 0
|
||||||
%define LIB_MINOR 7
|
%define LIB_MINOR 7
|
||||||
@ -151,6 +151,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 17 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-63
|
||||||
|
- Improve the support for IPv4 /prefix notation (#698464)
|
||||||
|
|
||||||
* Fri May 6 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-62
|
* Fri May 6 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-62
|
||||||
- Improve the support for IPv4 /prefix notation (#698464)
|
- Improve the support for IPv4 /prefix notation (#698464)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user