tftp.c: fix possible dereference of null pointer
This commit is contained in:
parent
667d133dab
commit
3f74e149f8
@ -1320,7 +1320,10 @@ static CURLcode tftp_do(struct connectdata *conn, bool *done)
|
|||||||
if(code)
|
if(code)
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
state = (tftp_state_data_t *)conn->proto.tftpc;
|
state = (tftp_state_data_t *)conn->proto.tftpc;
|
||||||
|
if(!state)
|
||||||
|
return CURLE_BAD_CALLING_ORDER;
|
||||||
|
|
||||||
code = tftp_perform(conn, done);
|
code = tftp_perform(conn, done);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user