]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Move the conex_finally label up, so that the errno value is always
authorGuido van Rossum <guido@python.org>
Fri, 7 Jun 2002 19:55:29 +0000 (19:55 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Jun 2002 19:55:29 +0000 (19:55 +0000)
returned.

Modules/socketmodule.c

index 49dd33245f0c1ee8d9e121741fe7ce0b997b1fd5..e2d499a28ff7562f3af59dd4cf4a9d7836f58571 100644 (file)
@@ -1462,6 +1462,7 @@ sock_connect_ex(PySocketSockObject *s, PyObject *addro)
                Py_END_ALLOW_THREADS
        }
 
+conex_finally:
        if (res != 0) {
 #ifdef MS_WINDOWS
                res = WSAGetLastError();
@@ -1470,7 +1471,6 @@ sock_connect_ex(PySocketSockObject *s, PyObject *addro)
 #endif
        }
 
-conex_finally:
        return PyInt_FromLong((long) res);
 }