aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-01-18 00:01:03 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-01-18 00:01:03 +0100
commite9f45aa91ba3937388c44673f296ba68597e6432 (patch)
treeb472f952cebada5da6656ec72c4ff47c4f8161aa /lib/url.c
parentafd1564215970f75439ac4e83a7974efa8c739c6 (diff)
parseurl: move back buffer to function scope
Regression since 1d4202ad, which moved the buffer into a more narrow scope, but the data in that buffer was used outside of that more narrow scope. Reported-by: Dan Fandrich Bug: https://curl.haxx.se/mail/lib-2017-01/0093.html
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index edae1e3f3..cbf19628c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4280,6 +4280,7 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data,
CURLcode result;
bool rebuild_url = FALSE;
bool url_has_scheme = FALSE;
+ char protobuf[16];
*prot_missing = FALSE;
@@ -4409,7 +4410,6 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data,
}
else {
/* clear path */
- char protobuf[16];
char slashbuf[4];
path[0]=0;