mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
allow larger request size in HTTP proxy
allow larger request size in HTTP proxy & correctly nullify request buffer
This commit is contained in:
1 parent
f287b94236
commit
252d481299
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -239,7 +239,7 @@ void * proxychild(struct clientparam* param) {
|
||||
bufsize = BUFSIZE;
|
||||
anonymous = param->srv->singlepacket;
|
||||
for(;;){
|
||||
memset(buf, 0, BUFSIZE);
|
||||
memset(buf, 0, bufsize);
|
||||
inbuf = 0;
|
||||
|
||||
|
||||
@@ -494,7 +494,7 @@ for(;;){
|
||||
}
|
||||
inbuf += i;
|
||||
if((bufsize - inbuf) < LINESIZE){
|
||||
if (bufsize > 20000){
|
||||
if (bufsize > (LINESIZE * 16)){
|
||||
RETURN (516);
|
||||
}
|
||||
if(!(newbuf = myrealloc(buf, bufsize + BUFSIZE))){RETURN (21);}
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
#define VERSION "3proxy-0.8b-devel"
|
||||
#define BUILDDATE "150302205552"
|
||||
#define BUILDDATE "150302210600"
|
||||
Reference in new issue
Block a user