Commit 98a5dd7a authored by Mike Hibler's avatar Mike Hibler
Browse files

TCPWRAPPERS code was printing out the wrong address on a denial.

It was printing out the destination (aka, boss) rather than the IP
that was trying to access boss. Very confusing.
parent b5db9b00
......@@ -7,7 +7,7 @@
PORTNAME= tftp-hpa
PORTVERSION= 5.2
PORTREVISION= 2
PORTREVISION= 3
#CATEGORIES= net
CATEGORIES= misc
MASTER_SITES= http://www.emulab.net/distributions/
......
......@@ -558,6 +558,23 @@ diff -rcN tftp-hpa-5.2.orig/tftpd/tftpd.c tftp-hpa-5.2/tftpd/tftpd.c
#ifdef HAVE_TCPWRAPPERS
***************
*** 950,956 ****
RQ_CLIENT_SIN, &from, RQ_SERVER_SIN, &myaddr, 0);
sock_methods(&wrap_request);
! tmp_p = (char *)inet_ntop(myaddr.sa.sa_family, SOCKADDR_P(&myaddr),
tmpbuf, INET6_ADDRSTRLEN);
if (!tmp_p) {
tmp_p = tmpbuf;
--- 1084,1090 ----
RQ_CLIENT_SIN, &from, RQ_SERVER_SIN, &myaddr, 0);
sock_methods(&wrap_request);
! tmp_p = (char *)inet_ntop(from.sa.sa_family, SOCKADDR_P(&from),
tmpbuf, INET6_ADDRSTRLEN);
if (!tmp_p) {
tmp_p = tmpbuf;
***************
*** 1119,1141 ****
exit(0);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment