diff options
Diffstat (limited to 'nbd/server.c')
-rw-r--r-- | nbd/server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nbd/server.c b/nbd/server.c index d9164ee6d0..74ba487094 100644 --- a/nbd/server.c +++ b/nbd/server.c @@ -1418,6 +1418,9 @@ static int nbd_receive_request(NBDClient *client, NBDRequest *request, if (ret < 0) { return ret; } + if (ret == 0) { + return -EIO; + } /* Request [ 0 .. 3] magic (NBD_REQUEST_MAGIC) |