]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
cups/http-addrlist.c: serr not defined, use sockerr 181/head
authorZdenek Dohnal <zdohnal@redhat.com>
Thu, 29 Apr 2021 06:49:25 +0000 (08:49 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Thu, 29 Apr 2021 06:49:25 +0000 (08:49 +0200)
cups/http-addrlist.c

index 54e2e9b5383a01fa9ae1a913771f0de2a1fa7463..975016b60e6656f78dc25ce167a2beb97ac86df3 100644 (file)
@@ -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))