From: Daniel Stenberg Date: Mon, 18 Sep 2023 07:25:19 +0000 (+0200) Subject: h2-proxy: remove left-over mistake in drain_tunnel() X-Git-Tag: curl-8_4_0~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6e5435cefdd0d1cd694f9084bfff041b611ab69;p=thirdparty%2Fcurl.git h2-proxy: remove left-over mistake in drain_tunnel() Left-over from 331b89a319 Reported-by: 南宫雪珊 Closes https://github.com/curl/curl/pull/11877 --- diff --git a/lib/cf-h2-proxy.c b/lib/cf-h2-proxy.c index a3feefca07..eb29ea1f99 100644 --- a/lib/cf-h2-proxy.c +++ b/lib/cf-h2-proxy.c @@ -233,7 +233,7 @@ static void drain_tunnel(struct Curl_cfilter *cf, bits = CURL_CSELECT_IN; if(!tunnel->closed && !tunnel->reset && tunnel->upload_blocked_len) bits |= CURL_CSELECT_OUT; - if(data->state.dselect_bits != bits || 1) { + if(data->state.dselect_bits != bits) { CURL_TRC_CF(data, cf, "[%d] DRAIN dselect_bits=%x", tunnel->stream_id, bits); data->state.dselect_bits = bits;