http2: fix var types in is_alive() implementations

Closes #17881
This commit is contained in:
Stefan Eissing 2025-07-10 09:36:19 +02:00 committed by Daniel Stenberg
parent 20ef31a751
commit 51369ae78b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 10 additions and 8 deletions

View file

@ -1501,15 +1501,16 @@ static bool cf_h2_proxy_is_alive(struct Curl_cfilter *cf,
bool *input_pending)
{
struct cf_h2_proxy_ctx *ctx = cf->ctx;
CURLcode result;
bool alive;
struct cf_call_data save;
*input_pending = FALSE;
CF_DATA_SAVE(save, cf, data);
result = (ctx && ctx->h2 && proxy_h2_connisalive(cf, data, input_pending));
alive = (ctx && ctx->h2 && proxy_h2_connisalive(cf, data, input_pending));
CURL_TRC_CF(data, cf, "[0] conn alive -> %d, input_pending=%d",
result, *input_pending);
alive, *input_pending);
CF_DATA_RESTORE(cf, save);
return result;
return alive;
}
static CURLcode cf_h2_proxy_query(struct Curl_cfilter *cf,

View file

@ -2713,15 +2713,16 @@ static bool cf_h2_is_alive(struct Curl_cfilter *cf,
bool *input_pending)
{
struct cf_h2_ctx *ctx = cf->ctx;
CURLcode result;
bool alive;
struct cf_call_data save;
*input_pending = FALSE;
CF_DATA_SAVE(save, cf, data);
result = (ctx && ctx->h2 && http2_connisalive(cf, data, input_pending));
alive = (ctx && ctx->h2 && http2_connisalive(cf, data, input_pending));
CURL_TRC_CF(data, cf, "conn alive -> %d, input_pending=%d",
result, *input_pending);
alive, *input_pending);
CF_DATA_RESTORE(cf, save);
return result;
return alive;
}
static CURLcode cf_h2_keep_alive(struct Curl_cfilter *cf,