From cd6b3c4ec3f57e206438bbd270f830cc5240c333 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Thu, 29 Apr 2021 08:49:25 +0200 Subject: [PATCH] cups/http-addrlist.c: serr not defined, use sockerr --- cups/http-addrlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/http-addrlist.c b/cups/http-addrlist.c index 54e2e9b538..975016b60e 100644 --- a/cups/http-addrlist.c +++ b/cups/http-addrlist.c @@ -342,7 +342,7 @@ httpAddrConnect2( // still connecting. This check prevents us from removing the socket // from the pool if the "error" is EINPROGRESS... int sockerr; // Current error on socket - socklen_t socklen = sizeof(serr); + socklen_t socklen = sizeof(sockerr); // Size of error variable if (!getsockopt(fds[i], SOL_SOCKET, SO_ERROR, &sockerr, &socklen) && (!sockerr || sockerr == EINPROGRESS)) -- 2.47.2