diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-04-18 23:53:48 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-04-18 23:53:48 +0200 |
commit | 3f74e149f88fef5419504439e0adee0d517d9033 (patch) | |
tree | 2d584750bb3b62f20ceb29b5ae232f1b1c22f3dd /lib/tftp.c | |
parent | 667d133dab461ceabc2698d04700d2eeb6c83eee (diff) | |
download | curl-3f74e149f88fef5419504439e0adee0d517d9033.tar.gz |
tftp.c: fix possible dereference of null pointer
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 3 |
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); |