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

This commit is contained in:
Jan F 2011-05-17 08:10:25 +02:00
parent 21bb70e1eb
commit 98d0ca190d
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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@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
- Improve the support for IPv4 /prefix notation (#698464)