mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Added localport/localhost initialization. This fixes socket.getsockname().
This commit is contained in:
parent
9a78536900
commit
4e1786689d
1 changed files with 2 additions and 0 deletions
|
|
@ -615,6 +615,8 @@ newtcpsobject(bufsize)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
INCREF(None);
|
INCREF(None);
|
||||||
|
self->localhost = 0;
|
||||||
|
self->localport = 0;
|
||||||
self->asr = None;
|
self->asr = None;
|
||||||
self->async_busy = 0;
|
self->async_busy = 0;
|
||||||
self->async_err = 0;
|
self->async_err = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue