diff options
author | Martin Storsjö <martin@martin.st> | 2011-12-01 11:24:23 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-12-01 12:05:14 +0200 |
commit | abe20c59b93426958624e16e89b24e0c0b43f370 (patch) | |
tree | 04ce08cd459e02b44a9bdb4d41f44cc9679fc6dc | |
parent | adfdcf87b15d70ae5fcf9ddf28e400fb2ba5c8fe (diff) | |
download | ffmpeg-abe20c59b93426958624e16e89b24e0c0b43f370.tar.gz |
http: Make sure proxyauth is initialized
This string will be passed to ff_http_auth_create_response
even if no proxy is used, resulting in reading uninitialized
memory. The other auth string is always initialized by
av_url_split.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 63cfecd332..a9b4d5a573 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -90,7 +90,7 @@ static int http_open_cnx(URLContext *h) { const char *path, *proxy_path, *lower_proto = "tcp", *local_path; char hostname[1024], hoststr[1024], proto[10]; - char auth[1024], proxyauth[1024]; + char auth[1024], proxyauth[1024] = ""; char path1[1024]; char buf[1024], urlbuf[1024]; int port, use_proxy, err, location_changed = 0, redirects = 0; |