Commit 6099a54e authored by Eric Blake's avatar Eric Blake
Browse files

api: Don't nest TLS sessions

According to the NBD protocol, a client should not send a second
NBD_OPT_STARTTLS request after one succeeds; but we allow this for
corner-case testing of server response.  If the server doesn't
actually reject the nested request, move the connection to DEAD
because we don't support it.

Fixes: 53617c92 ("api: Add nbd_aio_]opt_starttls")
parent 6094bf47
Pipeline #663117945 failed with stage
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment