]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
h2-proxy: remove left-over mistake in drain_tunnel()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Sep 2023 07:25:19 +0000 (09:25 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 18 Sep 2023 18:30:20 +0000 (14:30 -0400)
Left-over from 331b89a319

Reported-by: 南宫雪珊
Closes https://github.com/curl/curl/pull/11877

lib/cf-h2-proxy.c

index a3feefca072037f3920cb6a5d0aca0e6b949a6a5..eb29ea1f992be0ad20c742500b97cd56997df400 100644 (file)
@@ -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;