mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Move the conex_finally label up, so that the errno value is always
returned.
This commit is contained in:
parent
2a664a2a75
commit
1790e65d43
1 changed files with 1 additions and 1 deletions
|
@ -1462,6 +1462,7 @@ sock_connect_ex(PySocketSockObject *s, PyObject *addro)
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
conex_finally:
|
||||||
if (res != 0) {
|
if (res != 0) {
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
res = WSAGetLastError();
|
res = WSAGetLastError();
|
||||||
|
@ -1470,7 +1471,6 @@ sock_connect_ex(PySocketSockObject *s, PyObject *addro)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
conex_finally:
|
|
||||||
return PyInt_FromLong((long) res);
|
return PyInt_FromLong((long) res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue