diff --git a/src/proxy.c b/src/proxy.c index 3a6e5bd..16565f7 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -887,7 +887,6 @@ for(;;){ if(res != 99) { RETURN(res); } - res = 0; } contentlength64 = 0; inbuf = 0; @@ -1052,7 +1051,6 @@ for(;;){ if((res = mapsocket(param, conf.timeouts[CONNECTION_S])) != 98){ RETURN(res); } - res = 0; param->waitserver64 = 0; } } while(param->chunked); diff --git a/src/sockmap.c b/src/sockmap.c index b434ee9..559c2c5 100644 --- a/src/sockmap.c +++ b/src/sockmap.c @@ -25,7 +25,7 @@ ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t le #define SPLICE_F_GIFT 0x08 #endif -#define RETURN(xxx) { param->res = xxx; goto CLEANRET; } +#define RETURN(xxx) { res = xxx; goto CLEANRET; } #define MIN(a,b) ((a>b)?b:a) #define MAXSPLICE 65536 @@ -292,7 +292,7 @@ CLEANRET: if(pipesrv[0] >= 0) close(pipesrv[0]); if(pipesrv[1] >= 0) close(pipesrv[1]); - return param->res; + return res; } #endif