summaryrefslogtreecommitdiff
path: root/www/fhttpd/files/patch-ad
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-01-29 07:15:20 +0000
committerSteve Price <steve@FreeBSD.org>2000-01-29 07:15:20 +0000
commit02cbdaa95ac8f02febc99f5d7dcab79361adeabb (patch)
tree2bf2b598acd0a71e33ed3a047cbce1cd9368b2fe /www/fhttpd/files/patch-ad
parentHandle an invalid result code of 0 in Start-Control-Connection-Reply (diff)
Adding fhttpd version 0.4.2.
A C++-based FTP/HTTP server that supports modules. PR: 15804 Submitted by: Will Andrews <andrews@technologist.com>
Diffstat (limited to '')
-rw-r--r--www/fhttpd/files/patch-ad11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/fhttpd/files/patch-ad b/www/fhttpd/files/patch-ad
new file mode 100644
index 000000000000..eae416162010
--- /dev/null
+++ b/www/fhttpd/files/patch-ad
@@ -0,0 +1,11 @@
+--- 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));