diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-23 13:56:33 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-23 13:56:33 (GMT) |
commit | 4e1786689d18fbc68a146c4526ed3e16b9c13413 (patch) | |
tree | eb1d6fb34857a19efd0643c2dd69a966bf02c309 /Mac/Unsupported | |
parent | 9a7853690042c485f1566a2c0d52ab8387821e88 (diff) | |
download | cpython-4e1786689d18fbc68a146c4526ed3e16b9c13413.zip cpython-4e1786689d18fbc68a146c4526ed3e16b9c13413.tar.gz cpython-4e1786689d18fbc68a146c4526ed3e16b9c13413.tar.bz2 |
Added localport/localhost initialization. This fixes socket.getsockname().
Diffstat (limited to 'Mac/Unsupported')
-rw-r--r-- | Mac/Unsupported/mactcp/mactcpmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Unsupported/mactcp/mactcpmodule.c b/Mac/Unsupported/mactcp/mactcpmodule.c index e7dc317..fc07f1e 100644 --- a/Mac/Unsupported/mactcp/mactcpmodule.c +++ b/Mac/Unsupported/mactcp/mactcpmodule.c @@ -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; |