mirror of
https://github.com/curl/curl.git
synced 2026-04-18 20:31:44 +03: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue