aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2019-02-01 16:01:36 +0300
committerEric Blake <eblake@redhat.com>2019-02-04 15:11:27 -0600
commit65e01d47653eb127fa917bd9d2f1824a00ab2de6 (patch)
treeaff94d1a2836be2f6f80168494417697cd045503 /block
parentb0e4b5a58fde6c0ed9edb9b683cfbbd8ab45c35d (diff)
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 <vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190201130138.94525-5-vsementsov@virtuozzo.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/nbd-client.c2
1 files changed, 1 insertions, 1 deletions
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;
}