1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/www/fhttpd/files/patch-ad
Steve Price 02cbdaa95a Adding fhttpd version 0.4.2.
A C++-based FTP/HTTP server that supports modules.

PR:		15804
Submitted by:	Will Andrews <andrews@technologist.com>
2000-01-29 07:15:20 +00:00

12 lines
700 B
Plaintext

--- log.cc.orig Sat Jan 29 00:53:07 2000
+++ log.cc Sat Jan 29 00:54:02 2000
@@ -688,7 +688,7 @@
if(client){
sprintf(tmpstr,"%d",currentconnection->socket->port);
SendLogMessage(client,NULL,NULL,NULL,0,"CLIENT_EXISTS_LOCAL_PORT",tmpstr);
- if(!getsockname(currentconnection->gethandle(),(sockaddr*)&currsock,&currsockaddrlen)){
+ if(!getsockname(currentconnection->gethandle(),(sockaddr*)&currsock,(socklen_t*)&currsockaddrlen)){
SendLogMessage(client,NULL,NULL,NULL,0,"CLIENT_EXISTS_LOCAL_IP",inet_ntoa(currsock.sin_addr));
}
SendLogMessage(client,NULL,NULL,NULL,0,"CLIENT_EXISTS_IP",inet_ntoa(((sockaddr_in*)currentconnection->getaddress())->sin_addr));