mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:13:46 +03:00
url: remove dummy protocol handler
Just two added checks were needed saves a whole handler struct. Closes #10727
This commit is contained in:
parent
dc141a37d3
commit
f384d40718
2 changed files with 2 additions and 33 deletions
|
|
@ -976,7 +976,7 @@ void Curl_attach_connection(struct Curl_easy *data,
|
|||
data->conn = conn;
|
||||
Curl_llist_insert_next(&conn->easyq, conn->easyq.tail, data,
|
||||
&data->conn_queue);
|
||||
if(conn->handler->attach)
|
||||
if(conn->handler && conn->handler->attach)
|
||||
conn->handler->attach(data, conn);
|
||||
Curl_conn_ev_data_attach(conn, data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue