From 8a00560de2804fa8ab639c6e895ed3a7f1e75efc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 30 Sep 2019 09:30:58 +0200 Subject: http2: move state-init from creation to pre-transfer To make sure that the HTTP/2 state is initialized correctly for duplicated handles. It would otherwise easily generate "spurious" PRIORITY frames to get sent over HTTP/2 connections when duplicated easy handles were used. Reported-by: Daniel Silverstone Fixes #4303 Closes #4442 --- lib/transfer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index 421c8d2d0..d0d4aeb50 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1510,6 +1510,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data) } } #endif + Curl_http2_init_state(&data->state); } return result; -- cgit v1.2.1