1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

fix the check

This commit is contained in:
Daniel Stenberg 2007-10-25 09:34:16 +00:00
parent 91e27ce755
commit 9dbc2c827d

View File

@ -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);
state = conn->data->reqdata.proto.tftp = calloc(sizeof(tftp_state_data_t), if(!(state = conn->data->reqdata.proto.tftp)) {
1); state = conn->data->reqdata.proto.tftp = calloc(sizeof(tftp_state_data_t),
if(!state) 1);
return CURLE_OUT_OF_MEMORY; if(!state)
return CURLE_OUT_OF_MEMORY;
}
conn->bits.close = FALSE; /* keep it open if possible */ conn->bits.close = FALSE; /* keep it open if possible */