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

This commit is contained in:
Jan F 2011-05-24 06:25:15 +02:00
parent 0f88cedbbe
commit b4ce5f0bfd
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@
+ if ((endptr == str) || (*endptr != '\0') || (prefix > 32))
+ return INADDR_NONE;
+
+ return (~0UL << (32 - prefix));
+ return htonl(~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: 63%{?dist}
Release: 64%{?dist}
%define LIB_MAJOR 0
%define LIB_MINOR 7
@ -151,7 +151,7 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man3/*
%changelog
* Tue May 17 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-63
* Tue May 24 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-64
- Improve the support for IPv4 /prefix notation (#698464)
* Wed May 4 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-61