From: Vladimir Sementsov-Ogievskiy Date: Fri, 1 Feb 2019 13:01:36 +0000 (+0300) Subject: block/nbd-client: fix nbd_reply_chunk_iter_receive X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=65e01d47653eb127fa917bd9d2f1824a00ab2de6;p=qemu.git block/nbd-client: fix nbd_reply_chunk_iter_receive Use exported report, not the variable to be reused (should not really matter). Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-Id: <20190201130138.94525-5-vsementsov@virtuozzo.com> Signed-off-by: Eric Blake --- diff --git a/block/nbd-client.c b/block/nbd-client.c index d7d8829769..65e5600068 100644 --- a/block/nbd-client.c +++ b/block/nbd-client.c @@ -602,7 +602,7 @@ static bool nbd_reply_chunk_iter_receive(NBDClientSession *s, } /* Do not execute the body of NBD_FOREACH_REPLY_CHUNK for simple reply. */ - if (nbd_reply_is_simple(&s->reply) || s->quit) { + if (nbd_reply_is_simple(reply) || s->quit) { goto break_loop; }