Mercurial > libavformat.hg
changeset 6080:c7ddd67739a6 libavformat
http: Set http_code to 200 when doing a POST
This avoids reading and comparing uninitialized memory.
author | mstorsjo |
---|---|
date | Fri, 04 Jun 2010 06:35:12 +0000 |
parents | 4518f83661f4 |
children | d21ccbea3294 |
files | http.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/http.c Fri Jun 04 01:15:41 2010 +0000 +++ b/http.c Fri Jun 04 06:35:12 2010 +0000 @@ -291,6 +291,10 @@ 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; }