]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
conncache: done always evaluates to false
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jun 2024 06:48:18 +0000 (08:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jun 2024 10:43:28 +0000 (12:43 +0200)
Follow-up to c9b95c0bb30f88bf00e1ac

Spotted by CodeSonar

Reviewed-by: Stefan Eissing
Closes #14034

lib/conncache.c

index 95042abe42cfb8dbf0f2ec5bac4750ea403cd497..4024a715ce9e98f46ee890ea9c7d9e2b9736556a 100644 (file)
@@ -690,7 +690,7 @@ static void connc_discard_conn(struct conncache *connc,
    * not what we want. */
   if(aborted)
     done = TRUE;
-  else if(!done) {
+  if(!done) {
     /* Attempt to shutdown the connection right away. */
     Curl_attach_connection(data, conn);
     connc_run_conn_shutdown(data, conn, &done);