]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block/nbd-client: fix nbd_reply_chunk_iter_receive
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 1 Feb 2019 13:01:36 +0000 (16:01 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 4 Feb 2019 21:11:27 +0000 (15:11 -0600)
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>
block/nbd-client.c

index d7d88297698da0791edcba1f4f91fe6e80cb37a7..65e56000681e6e3611bba2f831595d666b1ba734 100644 (file)
@@ -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;
     }