diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 49dd33245f0c1ee8d9e121741fe7ce0b997b1fd5..e2d499a28ff7562f3af59dd4cf4a9d7836f58571 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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); }