diff --git a/src/sockmap.c b/src/sockmap.c index 9998a75..24ff59f 100644 --- a/src/sockmap.c +++ b/src/sockmap.c @@ -201,7 +201,7 @@ log(logbuf); log("send to server from buf"); #endif if(!param->nolongdatfilter){ - action = handledatfltcli(param, ¶m->clibuf, (int *)¶m->clibufsize, param->cliinbuf - res, (int *)¶m->cliinbuf); + action = handledatfltcli(param, ¶m->clibuf, (int *)¶m->clibufsize, param->clioffset, (int *)¶m->cliinbuf); if(action == HANDLED){ RETURN(0); } @@ -247,7 +247,7 @@ log("done send to server from buf"); log("send to client from buf"); #endif if(!param->nolongdatfilter){ - action = handledatfltsrv(param, ¶m->srvbuf, (int *)¶m->srvbufsize, param->srvinbuf - res, (int *)¶m->srvinbuf); + action = handledatfltsrv(param, ¶m->srvbuf, (int *)¶m->srvbufsize, param->srvoffset, (int *)¶m->srvinbuf); if(action == HANDLED){ RETURN(0); }