cpython: 44adbb5eeb4b (original) (raw)

Mercurial > cpython

changeset 95381:44adbb5eeb4b

Issue #23618: Fix sock_connect_impl(), set the socket error code sock_call_ex() gets the socket error code when the socket function fails. sock_connect_impl() didn't set the error correctly. [#23618]

Victor Stinner victor.stinner@gmail.com
date Thu, 02 Apr 2015 14:37:20 +0200
parents c4f8b56cb4e3
children 09a4d5cc6afd
files Modules/socketmodule.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-)[+] [-] Modules/socketmodule.c 8

line wrap: on

line diff

--- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2589,7 +2589,13 @@ sock_connect_impl(PySocketSockObject *s, if (err == EISCONN) return 1;

} static int