When sending a bit of data, start by clearing the remaining data and
only set it when there is still remaining after processing. This
solves one case where data remained queued, causing an abort() via
double free.

* protocols/http2_stream.c
  (stream_send_data): Never send and keep the same data tail. Always
    ensure that we need to write if we leave a tail.


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1717007 13f79535-47bb-0310-9956-ffa450edef68
1 file changed