From ac9dba09dfa66a18af3b38fd7e90f9d8008cd4cf Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 8 Jun 2026 04:29:11 +0200 Subject: [PATCH] socketpair.c use interim err var in Curl_wakeup_consume f --- lib/socketpair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socketpair.c b/lib/socketpair.c index afdb436a6a..1ac11b42d9 100644 --- a/lib/socketpair.c +++ b/lib/socketpair.c @@ -339,7 +339,7 @@ CURLcode Curl_wakeup_consume(curl_socket_t socks[2], bool all) if(!rc) break; else if(rc < 0) { - err = SOCKERRNO; + int err = SOCKERRNO; #ifndef USE_WINSOCK if(err == SOCKEINTR) continue;