projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
413abbe
)
http: Set http_code to 200 when doing a POST
author
Martin Storsjö
<martin@martin.st>
Fri, 4 Jun 2010 06:35:12 +0000
(06:35 +0000)
committer
Martin Storsjö
<martin@martin.st>
Fri, 4 Jun 2010 06:35:12 +0000
(06:35 +0000)
This avoids reading and comparing uninitialized memory.
Originally committed as revision 23464 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/http.c
patch
|
blob
|
history
diff --git
a/libavformat/http.c
b/libavformat/http.c
index
56f8021
..
4e2152f
100644
(file)
--- a/
libavformat/http.c
+++ b/
libavformat/http.c
@@
-291,6
+291,10
@@
static int http_connect(URLContext *h, const char *path, const char *hoststr,
if (post) {
/* always use chunked encoding for upload data */
s->chunksize = 0;
+ /* Pretend that it did work. We didn't read any header yet, since
+ * we've still to send the POST data, but the code calling this
+ * function will check http_code after we return. */
+ s->http_code = 200;
return 0;
}