diff options
author | Steve Price <steve@FreeBSD.org> | 2000-01-29 07:15:20 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 2000-01-29 07:15:20 +0000 |
commit | 02cbdaa95ac8f02febc99f5d7dcab79361adeabb (patch) | |
tree | 2bf2b598acd0a71e33ed3a047cbce1cd9368b2fe /www/fhttpd/files/patch-ae | |
parent | Handle 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>
Notes
Notes:
svn path=/head/; revision=25231
Diffstat (limited to 'www/fhttpd/files/patch-ae')
-rw-r--r-- | www/fhttpd/files/patch-ae | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/www/fhttpd/files/patch-ae b/www/fhttpd/files/patch-ae new file mode 100644 index 000000000000..4870350a46aa --- /dev/null +++ b/www/fhttpd/files/patch-ae @@ -0,0 +1,20 @@ +--- sockobj.cc.orig Sat Jan 29 00:54:37 2000 ++++ sockobj.cc Sat Jan 29 00:55:34 2000 +@@ -645,7 +645,7 @@ + global_nconnections++; + if(xsocket->status==0){ + hisaddresslength=128; +- h=accept(xsocket->gethandle(),(struct sockaddr*)s,&hisaddresslength); ++ h=accept(xsocket->gethandle(),(struct sockaddr*)s,(socklen_t*)&hisaddresslength); + if(h<0) return; + hisaddress=(struct sockaddr*)malloc(hisaddresslength); + if(hisaddress) memcpy(hisaddress,s,hisaddresslength); else{ +@@ -1861,7 +1861,7 @@ + if(fdarray[sockets[i]->handleindexforwheel].revents&POLLIN){ + fdarray[sockets[i]->handleindexforwheel].revents&=~POLLIN; + hisaddresslength=128; +- h=accept(sockets[i]->gethandle(),(struct sockaddr*)s,&hisaddresslength); ++ h=accept(sockets[i]->gethandle(),(struct sockaddr*)s,(socklen_t*)&hisaddresslength); + if(h>=0){ + #ifdef DEBUG + log("Wheel::onepass: accepting connection"); |