mirror of
https://github.com/curl/curl.git
synced 2026-07-16 04:27:17 +03:00
don't try the rewind if no http struct is allocated yet
This commit is contained in:
parent
a7488672bf
commit
c0c885a1f3
1 changed files with 8 additions and 1 deletions
|
|
@ -219,9 +219,16 @@ static CURLcode perhapsrewind(struct connectdata *conn)
|
|||
{
|
||||
struct HTTP *http = conn->proto.http;
|
||||
struct SessionHandle *data = conn->data;
|
||||
curl_off_t bytessent = http->writebytecount;
|
||||
curl_off_t bytessent;
|
||||
curl_off_t expectsend = -1; /* default is unknown */
|
||||
|
||||
if(!http)
|
||||
/* If this is still NULL, we have not reach very far and we can
|
||||
safely skip this rewinding stuff */
|
||||
return CURLE_OK;
|
||||
|
||||
bytessent = http->writebytecount;
|
||||
|
||||
/* figure out how much data we are expected to send */
|
||||
switch(data->set.httpreq) {
|
||||
case HTTPREQ_POST:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue