From: Zdenek Dohnal Date: Thu, 29 Apr 2021 06:49:25 +0000 (+0200) Subject: cups/http-addrlist.c: serr not defined, use sockerr X-Git-Tag: v2.4b1~129^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd6b3c4ec3f57e206438bbd270f830cc5240c333;p=thirdparty%2Fcups.git cups/http-addrlist.c: serr not defined, use sockerr --- 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))