]> granicus.if.org Git - curl/commit
TFTP: fix crash on time-out
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jan 2014 19:39:25 +0000 (20:39 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jan 2014 21:17:16 +0000 (22:17 +0100)
commitbcb19883a8e422f3e32a740a3cd68c2d34bff100
tree175d5cc21f1d5778da782b82944b280c443ba43d
parentf2e42dd056b3b3afcf0389f6f390551a06bea26b
TFTP: fix crash on time-out

tftp_done() can get called with its TFTP state pointer still being NULL
on an early time-out, which caused a segfault when dereferenced.

Reported-by: Glenn Sheridan
Bug: http://curl.haxx.se/mail/lib-2014-01/0246.html
lib/tftp.c