os: xtrans: _XSERVTransWriteV(): call ciptr->transptr->Write() directly

_XSERVTransWrite() is only intended as frontend, for xtrans consumers to
call in here. And upcoming commits will change that function to call the
Writev() method instead of Write(), so we would end up in infinite
recursing if we'd still it it here.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-30 20:41:10 +02:00
committed by Enrico Weigelt
parent b738a28098
commit a905a3921b

View File

@@ -1043,7 +1043,7 @@ static int _XSERVTransWriteV (XtransConnInfo ciptr, struct iovec *iov, size_t io
base = iov->iov_base;
while (len > 0) {
register int nbytes;
nbytes = _XSERVTransWrite (ciptr, base, len);
nbytes = ciptr->transptr->Write (ciptr, buf, size);
if (nbytes < 0 && total == 0) return -1;
if (nbytes <= 0) return total;
ESET(0);