url: remove dummy protocol handler

Just two added checks were needed saves a whole handler struct.

Closes #10727
This commit is contained in:
Daniel Stenberg 2023-03-10 08:39:47 +01:00
parent dc141a37d3
commit f384d40718
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 33 deletions

View file

@ -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);
}