summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-19 00:57:25 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-19 00:57:25 +0100
commitadae6f7ab3a15f031252fd77261f4d49fed88805 (patch)
tree8d11347429f7e9b0e631919c3ca12e17e9f1c6dc
parenta1a49aa27686e8d81d3a2f7b179b6c428153126c (diff)
downloadxine-lib-adae6f7ab3a15f031252fd77261f4d49fed88805.tar.gz
xine-lib-adae6f7ab3a15f031252fd77261f4d49fed88805.tar.bz2
Make proxyauth a variable local to http_plugin_open() function.
--HG-- extra : transplant_source : %F2%15%E8%D0%BC%EE%04Xk%21U%D2%AB%968%0F%15%8A%91E
-rw-r--r--src/input/input_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index 407e2045e..42f64b4a8 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -80,7 +80,6 @@ typedef struct {
char proxybuf[BUFSIZE];
char auth[BUFSIZE];
- char proxyauth[BUFSIZE];
char preview[MAX_PREVIEW_SIZE];
off_t preview_size;
@@ -667,6 +666,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) {
int use_proxy;
int proxyport;
int mpegurl_redirect = 0;
+ char proxyauth[BUFSIZE];
use_proxy = this_class->proxyhost && strlen(this_class->proxyhost);
@@ -674,7 +674,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) {
if (this_class->proxyuser && strlen(this_class->proxyuser)) {
if (http_plugin_basicauth (this_class->proxyuser,
this_class->proxypassword,
- this->proxyauth, BUFSIZE)) {
+ proxyauth, BUFSIZE)) {
_x_message(this->stream, XINE_MSG_CONNECTION_REFUSED, "proxy error", NULL);
return 0;
}
@@ -776,7 +776,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) {
buflen = strlen(this->buf);
if (this_class->proxyuser && strlen(this_class->proxyuser)) {
snprintf (this->buf + buflen, BUFSIZE - buflen,
- "Proxy-Authorization: Basic %s\015\012", this->proxyauth);
+ "Proxy-Authorization: Basic %s\015\012", proxyauth);
buflen = strlen(this->buf);
}
if (this->user && strlen(this->user)) {