diff options
author | Guido van Rossum <guido@python.org> | 2002-06-07 19:55:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-07 19:55:29 (GMT) |
commit | 1790e65d43dae0cd59f8008b3549a017ff4f16d6 (patch) | |
tree | 243fee6c3de5663ca5bee896d62928b598dc2902 /Modules | |
parent | 2a664a2a753a74452efee23bdbc479285d035e32 (diff) | |
download | cpython-1790e65d43dae0cd59f8008b3549a017ff4f16d6.zip cpython-1790e65d43dae0cd59f8008b3549a017ff4f16d6.tar.gz cpython-1790e65d43dae0cd59f8008b3549a017ff4f16d6.tar.bz2 |
Move the conex_finally label up, so that the errno value is always
returned.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 49dd332..e2d499a 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); } |