From a905a3921b6356b701916ca70c7fc8b0bcbb6cd9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 30 Jul 2025 20:41:10 +0200 Subject: [PATCH] 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 --- os/Xtrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/Xtrans.c b/os/Xtrans.c index 9194ee11c..3c3e25fae 100644 --- a/os/Xtrans.c +++ b/os/Xtrans.c @@ -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);