summaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 269d10f7a..03a84e631 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -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);