resolving addr when name == "" (repair of patch #220015)

This commit is contained in:
Jan F. Chadima 2009-04-14 10:52:10 +00:00
parent e027772433
commit 6787876518
2 changed files with 5 additions and 2 deletions

View File

@ -42,7 +42,7 @@ diff -up tcp_wrappers_7.6/socket.c.patch17 tcp_wrappers_7.6/socket.c
+ * and hostname. */
+ if (strlen(request->client->addr) &&
+ HOSTNAME_KNOWN(request->client->addr) &&
+ (!strlen(request->client->addr) ||
+ (!strlen(request->client->name) ||
+ !HOSTNAME_KNOWN(request->client->name)))
+ host = request->client->addr;
+ else

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: 54%{?dist}
Release: 55%{?dist}
%define LIB_MAJOR 0
%define LIB_MINOR 7
@ -148,6 +148,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man3/*
%changelog
* Tue Apr 14 2009 Jan F. Chadima <jchadima@redhat.com> - 7.6-55
- resolving addr when name == "" (repair of patch #220015)
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.6-54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild