mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
fix the check
This commit is contained in:
parent
91e27ce755
commit
9dbc2c827d
@ -612,10 +612,12 @@ static CURLcode Curl_tftp_connect(struct connectdata *conn, bool *done)
|
|||||||
sessionhandle, deal with it */
|
sessionhandle, deal with it */
|
||||||
Curl_reset_reqproto(conn);
|
Curl_reset_reqproto(conn);
|
||||||
|
|
||||||
|
if(!(state = conn->data->reqdata.proto.tftp)) {
|
||||||
state = conn->data->reqdata.proto.tftp = calloc(sizeof(tftp_state_data_t),
|
state = conn->data->reqdata.proto.tftp = calloc(sizeof(tftp_state_data_t),
|
||||||
1);
|
1);
|
||||||
if(!state)
|
if(!state)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
conn->bits.close = FALSE; /* keep it open if possible */
|
conn->bits.close = FALSE; /* keep it open if possible */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user