From 13d81341aca563b0e53b0de9475ad2b02c7b5a3c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 18 May 2020 23:23:32 +0200 Subject: [PATCH] Report the amount of actual data sent/received in AIO callbacks. We did this for fds but not for memory buffers. --- src/meshlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink.c b/src/meshlink.c index 55b1e04f..5815a777 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -3465,7 +3465,7 @@ static bool aio_finish_one(meshlink_handle_t *mesh, meshlink_channel_t *channel, if(aio->data) { if(aio->cb.buffer) { - aio->cb.buffer(mesh, channel, aio->data, aio->len, aio->priv); + aio->cb.buffer(mesh, channel, aio->data, aio->done, aio->priv); } } else { if(aio->cb.fd) { -- 2.39.2