mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
connection_check: set ->data to the transfer doing the check
The http2 code for connection checking needs a transfer to use. Make sure a working one is set before handler->connection_check() is called. Reported-by: jnbr on github Fixes #3541 Closes #3547
This commit is contained in:
parent
81a9fe4e92
commit
38d8e1bd4e
@ -964,6 +964,7 @@ static bool extract_if_dead(struct connectdata *conn,
|
||||
/* The protocol has a special method for checking the state of the
|
||||
connection. Use it to check if the connection is dead. */
|
||||
unsigned int state;
|
||||
conn->data = data; /* use this transfer for now */
|
||||
state = conn->handler->connection_check(conn, CONNCHECK_ISDEAD);
|
||||
dead = (state & CONNRESULT_DEAD);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user