From: Daniel Stenberg Date: Thu, 16 Oct 2025 06:32:57 +0000 (+0200) Subject: connect: remove redundant condition in shutdown start X-Git-Tag: rc-8_17_0-2~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71d5525113171903deb9b97cc1913c30f515cc63;p=thirdparty%2Fcurl.git connect: remove redundant condition in shutdown start Pointed out by CodeSonar Closes #19079 --- diff --git a/lib/connect.c b/lib/connect.c index 1c31209567..5dc4e2fc74 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -171,7 +171,7 @@ void Curl_shutdown_start(struct Curl_easy *data, int sockindex, ((data->set.shutdowntimeout > 0) ? data->set.shutdowntimeout : DEFAULT_SHUTDOWN_TIMEOUT_MS); /* Set a timer, unless we operate on the admin handle */ - if(data->mid && (conn->shutdown.timeout_ms > 0)) + if(data->mid) Curl_expire_ex(data, nowp, conn->shutdown.timeout_ms, EXPIRE_SHUTDOWN); }