Fix invalid offset in datafilters

This commit is contained in:
Vladimir Dubrovin 2026-06-28 21:09:36 +03:00
parent af9f23ece7
commit 8f13582329

View File

@ -201,7 +201,7 @@ log(logbuf);
log("send to server from buf"); log("send to server from buf");
#endif #endif
if(!param->nolongdatfilter){ if(!param->nolongdatfilter){
action = handledatfltcli(param, &param->clibuf, (int *)&param->clibufsize, param->cliinbuf - res, (int *)&param->cliinbuf); action = handledatfltcli(param, &param->clibuf, (int *)&param->clibufsize, param->clioffset, (int *)&param->cliinbuf);
if(action == HANDLED){ if(action == HANDLED){
RETURN(0); RETURN(0);
} }
@ -247,7 +247,7 @@ log("done send to server from buf");
log("send to client from buf"); log("send to client from buf");
#endif #endif
if(!param->nolongdatfilter){ if(!param->nolongdatfilter){
action = handledatfltsrv(param, &param->srvbuf, (int *)&param->srvbufsize, param->srvinbuf - res, (int *)&param->srvinbuf); action = handledatfltsrv(param, &param->srvbuf, (int *)&param->srvbufsize, param->srvoffset, (int *)&param->srvinbuf);
if(action == HANDLED){ if(action == HANDLED){
RETURN(0); RETURN(0);
} }