Skip to content
Snippets Groups Projects
Commit 3f74e149 authored by Marc Hoersken's avatar Marc Hoersken
Browse files

tftp.c: fix possible dereference of null pointer

parent 667d133d
No related branches found
No related tags found
No related merge requests found
......@@ -1320,7 +1320,10 @@ static CURLcode tftp_do(struct connectdata *conn, bool *done)
if(code)
return code;
}
state = (tftp_state_data_t *)conn->proto.tftpc;
if(!state)
return CURLE_BAD_CALLING_ORDER;
code = tftp_perform(conn, done);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment