Fix WRITE_ZEROES/STARTTLS combinationnbd-3.15.1
commit425235a540473be7c7f92f702a5f54b1bb7bf6a3
authorWouter Verhelst <w@uter.be>
Tue, 20 Dec 2016 08:28:40 +0000 (20 09:28 +0100)
committerWouter Verhelst <w@uter.be>
Tue, 20 Dec 2016 08:28:40 +0000 (20 09:28 +0100)
treee3ded28669d23a636a3457f901fd9b50ffe71e20
parent045881397f745a12efc159fd0b2fe590228016c3
Fix WRITE_ZEROES/STARTTLS combination

We merged the WRITE_ZEROES support from a branch, where it was written
before STARTTLS was implemented, without properly adapting it to the way
things are now done in the light of STARTTLS, resulting in the
WRITE_ZEROES function sending its reply header in the clear,
unconditionally.

Fix by using the correct function instead.
nbd-server.c