Fix invalid buffer calculation in sockmap

This commit is contained in:
Vladimir Dubrovin 2026-05-12 21:06:31 +03:00
parent aaa04116a8
commit 1de06c5059

View File

@ -399,7 +399,7 @@ log("done read from client to pipe");
#ifdef WITHLOG #ifdef WITHLOG
log("read from server to pipe\n"); log("read from server to pipe\n");
#endif #endif
res = splice(param->remsock, NULL, pipesrv[1], NULL, MIN(MAXSPLICE - inclientpipe, fromserver - inserverpipe), SPLICE_F_NONBLOCK|SPLICE_F_MOVE); res = splice(param->remsock, NULL, pipesrv[1], NULL, MIN(MAXSPLICE - inserverpipe, fromserver - inserverpipe), SPLICE_F_NONBLOCK|SPLICE_F_MOVE);
#ifdef WITHLOG #ifdef WITHLOG
log("server to pipe splice finished\n"); log("server to pipe splice finished\n");
#if WITHLOG > 1 #if WITHLOG > 1