diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-02-23 21:13:36 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-02-23 21:13:36 (GMT) |
commit | c3d90560213a87ca975bc73663d85fbc987ede20 (patch) | |
tree | f009bb6b64ee4820bf3342b32e31f222bda9f452 /abs/core/curl/0001-connection_check-set-data-to-the-transfer-doing-the-.patch | |
parent | cc8e6507c69589692aeacbc14082f49b24cba775 (diff) | |
download | linhes_pkgbuild-c3d90560213a87ca975bc73663d85fbc987ede20.zip linhes_pkgbuild-c3d90560213a87ca975bc73663d85fbc987ede20.tar.gz linhes_pkgbuild-c3d90560213a87ca975bc73663d85fbc987ede20.tar.bz2 |
curl: update to 7.64.0
Diffstat (limited to 'abs/core/curl/0001-connection_check-set-data-to-the-transfer-doing-the-.patch')
-rw-r--r-- | abs/core/curl/0001-connection_check-set-data-to-the-transfer-doing-the-.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/core/curl/0001-connection_check-set-data-to-the-transfer-doing-the-.patch b/abs/core/curl/0001-connection_check-set-data-to-the-transfer-doing-the-.patch new file mode 100644 index 0000000..cf486db --- /dev/null +++ b/abs/core/curl/0001-connection_check-set-data-to-the-transfer-doing-the-.patch @@ -0,0 +1,31 @@ +From 38d8e1bd4ed1ae52930ae466ecbac78e888b142f Mon Sep 17 00:00:00 2001 +Message-Id: <38d8e1bd4ed1ae52930ae466ecbac78e888b142f.1550283194.git.jan.steffens@gmail.com> +From: Daniel Stenberg <daniel@haxx.se> +Date: Mon, 11 Feb 2019 07:56:00 +0100 +Subject: [PATCH] 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 +--- + lib/url.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/url.c b/lib/url.c +index bdb472999..bc47685db 100644 +--- a/lib/url.c ++++ b/lib/url.c +@@ -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); + } +-- +2.20.1 + |