diff options
author | Vladimir Sementsov-Ogievskiy | 2018-04-27 16:20:01 +0200 |
---|---|---|
committer | Eric Blake | 2018-05-04 15:23:07 +0200 |
commit | 89aa0d87634e2cb98517509dc8bdb876f26ecf8b (patch) | |
tree | 714dfa4ecf91541920d8beb2a3936df80776f76e /util/envlist.c | |
parent | Merge remote-tracking branch 'remotes/vivier/tags/m68k-for-2.13-pull-request'... (diff) | |
download | qemu-89aa0d87634e2cb98517509dc8bdb876f26ecf8b.tar.gz qemu-89aa0d87634e2cb98517509dc8bdb876f26ecf8b.tar.xz qemu-89aa0d87634e2cb98517509dc8bdb876f26ecf8b.zip |
nbd/client: fix nbd_negotiate_simple_meta_context
Initialize received variable. Otherwise, is is possible for server to
answer without any contexts, but we will set context_id to something
random (received_id is not initialized too) and return 1, which is
wrong.
To solve it, just initialize received to false. Initialize received_id
too, just to make all possible checkers happy.
Bug was introduced in 78a33ab58782efdb206de14 "nbd: BLOCK_STATUS for
standard get_block_status function: client part" with the whole
function.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20180427142002.21930-2-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
CC: qemu-stable@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'util/envlist.c')
0 files changed, 0 insertions, 0 deletions