Prevent a crash if 2 (or more) requests are made to the same host and
pipelining is enabled and the connection does not complete.
Bug: https://github.com/curl/curl/pull/690
result = CURLE_ABORTED_BY_CALLBACK;
}
- if((conn->send_pipe->size + conn->recv_pipe->size != 0 &&
+ if((!premature &&
+ conn->send_pipe->size + conn->recv_pipe->size != 0 &&
!data->set.reuse_forbid &&
!conn->bits.close)) {
/* Stop if pipeline is not empty and we do not have to close