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:
f470a13
)
copy the name properly when re-using a connection
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 22 Apr 2001 16:47:55 +0000
(16:47 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 22 Apr 2001 16:47:55 +0000
(16:47 +0000)
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/url.c
b/lib/url.c
index
4fa180d
..
44d4ade
100644
(file)
--- a/
lib/url.c
+++ b/
lib/url.c
@@
-2022,8
+2022,9
@@
static CURLcode Connect(struct UrlData *data,
free(conn->path); /* free the previous path pointer */
/* we need these pointers if we speak over a proxy */
- conn->name = old_conn->name;
- conn->hostname = old_conn->hostname;
+ strcpy(conn->gname, old_conn->gname); /* copy the name */
+ conn->name = conn->gname;
+ conn->hostname = old_conn->gname;
conn->path = path; /* use this one */
conn->ppath = path; /* set this too */