diff --git a/lib/url.c b/lib/url.c index c26f2a1990f8ee..fc2031c943742e 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1984,6 +1984,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* we need these pointers if we speak over a proxy */ conn->hostname = old_conn->gname; + conn->name = old_conn->name; free(conn->path); /* free the previously allocated path pointer */