From 330c4907544ac1c1f42e22bde45d9c7e49a8e333 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 29 Dec 2024 17:24:27 -0800 Subject: aio: clear vector on advance (debugging aid) --- src/core/aio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core') diff --git a/src/core/aio.c b/src/core/aio.c index 98447c00..bbeb5cef 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -749,6 +749,8 @@ nni_aio_iov_advance(nni_aio *aio, size_t n) for (unsigned i = 0; i < aio->a_nio; i++) { aio->a_iov[i] = aio->a_iov[i + 1]; } + aio->a_iov[aio->a_nio].iov_buf = NULL; // serves as indicator + aio->a_iov[aio->a_nio].iov_len = 0; // serves as indicator } return (residual); // we might not have used all of n for this iov } -- cgit v1.2.3-70-g09d2