projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc6da00
)
Ingo Wilken's redirect fixes
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 11 May 2001 06:10:48 +0000
(06:10 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 11 May 2001 06:10:48 +0000
(06:10 +0000)
lib/transfer.c
patch
|
blob
|
history
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/transfer.c
b/lib/transfer.c
index
5823921
..
1dad615
100644
(file)
--- a/
lib/transfer.c
+++ b/
lib/transfer.c
@@
-910,6
+910,7
@@
CURLcode Curl_perform(CURL *curl)
/* TBD: set the URL with curl_setopt() */
data->url = newurl;
+ newurl = NULL; /* don't free! */
data->bits.urlstringalloc = TRUE; /* the URL is allocated */
diff --git
a/lib/url.c
b/lib/url.c
index
8c23ae9
..
787bc18
100644
(file)
--- a/
lib/url.c
+++ b/
lib/url.c
@@
-2233,6
+2233,12
@@
CURLcode Curl_done(struct connectdata *conn)
conn->bits.rangestringalloc = FALSE;
}
+ /* Cleanup possible redirect junk */
+ if(conn->newurl) {
+ free(conn->newurl);
+ conn->newurl = NULL;
+ }
+
/* this calls the protocol-specific function pointer previously set */
if(conn->curl_done)
result = conn->curl_done(conn);