aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-08-03 00:03:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-08-03 22:51:35 +0200
commit784336deec2a674fc2ed8fe6f4af65ecf0cb8f35 (patch)
treeb92cb558649e292973c4b1d1171b4356409f1800 /lib/url.c
parenteb41e8eebef1a308157fbbd171919dba28a1eca2 (diff)
multi: remove data->state.current_conn struct field
Not needed
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/url.c b/lib/url.c
index bc95c9a29..d2149abd8 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2605,7 +2605,7 @@ CURLcode Curl_disconnect(struct connectdata *conn, bool dead_connection)
}
conn_free(conn);
- data->state.current_conn = NULL;
+
Curl_speedinit(data);
return CURLE_OK;
@@ -5865,9 +5865,7 @@ CURLcode Curl_do_more(struct connectdata *conn, bool *completed)
void Curl_reset_reqproto(struct connectdata *conn)
{
struct SessionHandle *data = conn->data;
- if(data->state.proto.generic && data->state.current_conn != conn) {
- free(data->state.proto.generic);
- data->state.proto.generic = NULL;
- }
- data->state.current_conn = conn;
+
+ Curl_safefree(data->state.proto.generic);
+ data->state.proto.generic = NULL;
}