diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-02-11 07:56:00 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-02-11 10:34:34 +0100 |
commit | 38d8e1bd4ed1ae52930ae466ecbac78e888b142f (patch) | |
tree | 326527f4d3a92c89c6fbc4c561bf95823d695b4b /lib | |
parent | 81a9fe4e92e263621c2117fdeb1603fe576006ad (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 1 |
1 files changed, 1 insertions, 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); } |