diff --git a/lib/multi.c b/lib/multi.c index 9ee3523533..8bb93660de 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -2157,6 +2157,8 @@ static void close_all_connections(struct Curl_multi *multi) conn->data = multi->closure_handle; sigpipe_ignore(conn->data, &pipe_st); + conn->data->easy_conn = NULL; /* clear the easy handle's connection + pointer */ /* This will remove the connection from the cache */ (void)Curl_disconnect(conn, FALSE); sigpipe_restore(&pipe_st);