OSDN Git Service

Fix handling of errors in the http protocol
authorMartin Storsjö <martin@martin.st>
Tue, 8 Jun 2010 11:18:22 +0000 (11:18 +0000)
committerMartin Storsjö <martin@martin.st>
Tue, 8 Jun 2010 11:18:22 +0000 (11:18 +0000)
commit701ea516eeafc38b5077eca2ce5e994f306e5165
tree013a19b029b5481d3866bd24d19d7030ce7d0527
parent4ceb8b3460d58617aff5deb9c73c43d04055542b
Fix handling of errors in the http protocol

If http_connect fails, we've already stored the new connection handle in s->hd,
so clear it so http_close won't double-free it.

10l to me for not spotting it during review

Originally committed as revision 23529 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/http.c