protocol: Ignore rest of option when replying with error
commit7938bbc463a694aeda888d51f1de446f23402d8f
authorEric Blake <eblake@redhat.com>
Fri, 20 May 2016 14:04:05 +0000 (20 08:04 -0600)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 20 May 2016 14:31:23 +0000 (20 15:31 +0100)
tree6bbc05ecadb288c2e4678779ea1512d6bef801b7
parent0095b003b56894baad8e6789d523cf3c51905c05
protocol: Ignore rest of option when replying with error

We must consume the payload of any option received, whether or
not we can answer the option successfully, in order to be in
sync for reading the next option.  This is particularly true
once clients start using NBD_OPT_GO, as long as we don't happen
to service that option.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/connections.c