summaryrefslogtreecommitdiffstats
path: root/www/fhttpd/files/patch-af
blob: ca2207378b0d7fa866a708a66c51149a64da8257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- fhttpd.cc.orig	Sat Jan 29 00:56:40 2000
+++ fhttpd.cc	Sat Jan 29 00:58:31 2000
@@ -130,7 +130,7 @@
 basedir[255]=0;
 strncpy(username,globalhttppw->pw_name,128); 
 username[128]=0;
-if(!getsockname(connection->gethandle(),(sockaddr*)&currsock,&currsockaddrlen)){
+if(!getsockname(connection->gethandle(),(sockaddr*)&currsock,(socklen_t*)&currsockaddrlen)){
  AddressRoot *curraddrroot=(AddressRoot*)addressroots.start;
  while(curraddrroot){
   if((*((__s32*)&currsock.sin_addr))==curraddrroot->address){
@@ -250,7 +250,7 @@
 if(c->socket){
  sprintf(tmpstr,"%d",c->socket->port);
  LogMessage(this,NULL,NULL,NULL,0,"LOCAL_PORT",tmpstr);
- if(!getsockname(c->gethandle(),(sockaddr*)&currsock,&currsockaddrlen)){
+ if(!getsockname(c->gethandle(),(sockaddr*)&currsock,(socklen_t*)&currsockaddrlen)){
   LogMessage(this,NULL,NULL,NULL,0,"LOCAL_IP",inet_ntoa(currsock.sin_addr));
   }
  LogMessage(this,NULL,NULL,NULL,0,"IP",inet_ntoa(((sockaddr_in*)c->getaddress())->sin_addr));
@@ -349,7 +349,7 @@
 if(servertype==ftp_server_port){
  strncpy(tmphostname,hostname,256);
  tmphostname[255]=0;
- if(!getsockname(client->gethandle(),(sockaddr*)&currsock,&currsockaddrlen)){
+ if(!getsockname(client->gethandle(),(sockaddr*)&currsock,(socklen_t*)&currsockaddrlen)){
   AddressRoot *curraddrroot=(AddressRoot*)addressroots.start;
   while(curraddrroot){
    if((*((__s32*)&currsock.sin_addr))==curraddrroot->address){
@@ -2554,7 +2554,7 @@
      if(blength>253) param[1][253]=0;
      }else ((ControlFTPServerApp*)client->app)->trailingslash=1;
     j=0;
-    if(getsockname(client->gethandle(),(sockaddr*)&currsock,&currsockaddrlen)){
+    if(getsockname(client->gethandle(),(sockaddr*)&currsock,(socklen_t*)&currsockaddrlen)){
      (*((__s32*)&currsock.sin_addr))=-1;
      }
 
@@ -3139,7 +3139,7 @@
 
              struct sockaddr_in currsock;
              sockaddr_size_type currsockaddrlen=sizeof(currsock);
-             if(!getsockname(client->gethandle(),(sockaddr*)&currsock,&currsockaddrlen)){
+             if(!getsockname(client->gethandle(),(sockaddr*)&currsock,(socklen_t*)&currsockaddrlen)){
               AddressRoot *curraddrroot=(AddressRoot*)addressroots.start;
               while(curraddrroot){
                if((*((__s32*)&currsock.sin_addr))==curraddrroot->address){
OpenPOWER on IntegriCloud