diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-19 01:03:58 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-19 01:03:58 +0100 |
commit | 64596f317f7d03ed1f3e747cd2b0664b1d4f6535 (patch) | |
tree | 0ae70f1430b14cfa7eb7f81f9434efb6d2071f49 | |
parent | adae6f7ab3a15f031252fd77261f4d49fed88805 (diff) | |
download | xine-lib-64596f317f7d03ed1f3e747cd2b0664b1d4f6535.tar.gz xine-lib-64596f317f7d03ed1f3e747cd2b0664b1d4f6535.tar.bz2 |
Make auth also a local variable in http_plugin_open.
-rw-r--r-- | src/input/input_http.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c index 42f64b4a8..f2e91c226 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -79,8 +79,6 @@ typedef struct { char buf[BUFSIZE]; char proxybuf[BUFSIZE]; - char auth[BUFSIZE]; - char preview[MAX_PREVIEW_SIZE]; off_t preview_size; @@ -666,6 +664,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) { int use_proxy; int proxyport; int mpegurl_redirect = 0; + char auth[BUFSIZE]; char proxyauth[BUFSIZE]; use_proxy = this_class->proxyhost && strlen(this_class->proxyhost); @@ -693,7 +692,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) { this->port = DEFAULT_HTTP_PORT; if (this->user && strlen(this->user)) { - if (http_plugin_basicauth (this->user, this->password, this->auth, BUFSIZE)) { + if (http_plugin_basicauth (this->user, this->password, auth, BUFSIZE)) { _x_message(this->stream, XINE_MSG_CONNECTION_REFUSED, "basic auth error", NULL); return -1; } @@ -781,7 +780,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) { } if (this->user && strlen(this->user)) { snprintf (this->buf + buflen, BUFSIZE - buflen, - "Authorization: Basic %s\015\012", this->auth); + "Authorization: Basic %s\015\012", auth); buflen = strlen(this->buf); } |