mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
Added localport/localhost initialization. This fixes socket.getsockname().
This commit is contained in:
parent
9a78536900
commit
4e1786689d
@ -615,6 +615,8 @@ newtcpsobject(bufsize)
|
||||
return NULL;
|
||||
}
|
||||
INCREF(None);
|
||||
self->localhost = 0;
|
||||
self->localport = 0;
|
||||
self->asr = None;
|
||||
self->async_busy = 0;
|
||||
self->async_err = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user