... where 'data' is assumed to always work.
Closes #14033
struct Curl_easy *data = last_data? last_data : connc->closure_handle;
bool done = FALSE;
+ DEBUGASSERT(data);
DEBUGASSERT(connc);
DEBUGASSERT(!conn->bundle);
if(!e)
return;
+ DEBUGASSERT(data);
DEBUGASSERT(!connc->shutdowns.iter_locked);
DEBUGF(infof(data, "[CCACHE] perform, %zu connections being shutdown",
Curl_llist_count(&connc->shutdowns.conn_list)));
* This is the only function that should assign data->conn
*/
void Curl_attach_connection(struct Curl_easy *data,
- struct connectdata *conn)
+ struct connectdata *conn)
{
+ DEBUGASSERT(data);
DEBUGASSERT(!data->conn);
DEBUGASSERT(conn);
data->conn = conn;