From fde2143df75f5ded02a3e5392e828dd5a6a9dfd0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 27 Jun 2024 08:48:18 +0200 Subject: [PATCH] conncache: done always evaluates to false Follow-up to c9b95c0bb30f88bf00e1ac Spotted by CodeSonar Reviewed-by: Stefan Eissing Closes #14034 --- lib/conncache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/conncache.c b/lib/conncache.c index 95042abe42..4024a715ce 100644 --- a/lib/conncache.c +++ b/lib/conncache.c @@ -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); -- 2.47.3