From 8f1358232980ab204e1893f1aeb865bdcda5a6b5 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Sun, 28 Jun 2026 21:09:36 +0300 Subject: [PATCH] Fix invalid offset in datafilters --- src/sockmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }