OSDN Git Service

nbd: Don't kill server when client requests unknown option
authorEric Blake <eblake@redhat.com>
Wed, 6 Apr 2016 22:48:38 +0000 (16:48 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Apr 2016 22:07:44 +0000 (00:07 +0200)
commit156f6a10c21c3501aa3938badf5c3f1339c509a2
tree14d55dbed56b9249a8ac23b1478795b4293ac735
parent6ff5816478940c76d3412593e503f644af531d49
nbd: Don't kill server when client requests unknown option

nbd-server.c currently fails to handle unsupported options properly.
If during option haggling the client sends an unknown request, the
server kills the connection instead of letting the client try to
fall back to something older.  This is precisely what advertising
NBD_FLAG_FIXED_NEWSTYLE was supposed to fix.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1459982918-32229-1-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd/server.c