Curl_pSecFn->FreeContextBuffer(outbuf.pvBuffer);
if(!result) {
if(written < outbuf.cbBuffer) {
+ result = CURLE_SEND_ERROR;
failf(data, "schannel: failed to send close msg: %s"
" (bytes written: %zu)", curl_easy_strerror(result), written);
- result = CURLE_SEND_ERROR;
goto out;
}
backend->sent_shutdown = TRUE;
}
else {
if(!backend->recv_connection_closed) {
- failf(data, "schannel: error sending close msg: %d", result);
result = CURLE_SEND_ERROR;
+ failf(data, "schannel: error sending close msg: %d", result);
goto out;
}
/* Looks like server already closed the connection.