mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
parent
9474a5fe11
commit
9554c3c6e5
@ -569,7 +569,7 @@ CURLcode Curl_open(struct Curl_easy **curl)
|
|||||||
DEBUGF(fprintf(stderr, "Error: malloc of buffer failed\n"));
|
DEBUGF(fprintf(stderr, "Error: malloc of buffer failed\n"));
|
||||||
result = CURLE_OUT_OF_MEMORY;
|
result = CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
Curl_mime_initpart(&data->set.mimepost, data);
|
Curl_mime_initpart(&data->set.mimepost, data);
|
||||||
|
|
||||||
data->state.headerbuff = malloc(HEADERSIZE);
|
data->state.headerbuff = malloc(HEADERSIZE);
|
||||||
@ -581,9 +581,7 @@ CURLcode Curl_open(struct Curl_easy **curl)
|
|||||||
result = Curl_init_userdefined(&data->set);
|
result = Curl_init_userdefined(&data->set);
|
||||||
|
|
||||||
data->state.headersize = HEADERSIZE;
|
data->state.headersize = HEADERSIZE;
|
||||||
|
|
||||||
Curl_convert_init(data);
|
Curl_convert_init(data);
|
||||||
|
|
||||||
Curl_initinfo(data);
|
Curl_initinfo(data);
|
||||||
|
|
||||||
/* most recent connection is not yet defined */
|
/* most recent connection is not yet defined */
|
||||||
@ -596,6 +594,7 @@ CURLcode Curl_open(struct Curl_easy **curl)
|
|||||||
|
|
||||||
Curl_http2_init_state(&data->state);
|
Curl_http2_init_state(&data->state);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(result) {
|
if(result) {
|
||||||
Curl_resolver_cleanup(data->state.resolver);
|
Curl_resolver_cleanup(data->state.resolver);
|
||||||
|
Loading…
Reference in New Issue
Block a user