diff --git a/iiod/responder.c b/iiod/responder.c index 3b9c2bca3..caddb927d 100644 --- a/iiod/responder.c +++ b/iiod/responder.c @@ -750,7 +750,7 @@ static void handle_transfer_block(struct parser_pdata *pdata, int ret; buf = get_iio_buffer(pdata, cmd, &entry); - ret = iio_err(block); + ret = iio_err(buf); if (ret) goto out_send_response;