]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
connect: remove redundant condition in shutdown start
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Oct 2025 06:32:57 +0000 (08:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 16 Oct 2025 06:56:16 +0000 (08:56 +0200)
Pointed out by CodeSonar

Closes #19079

lib/connect.c

index 1c312095674d32b0d3a6d26c92a58f91467a2a9a..5dc4e2fc747b6fca9bf6c9b044c02864053d15e0 100644 (file)
@@ -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);
 }