summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-10-23 13:56:33 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-10-23 13:56:33 (GMT)
commit4e1786689d18fbc68a146c4526ed3e16b9c13413 (patch)
treeeb1d6fb34857a19efd0643c2dd69a966bf02c309 /Mac
parent9a7853690042c485f1566a2c0d52ab8387821e88 (diff)
downloadcpython-4e1786689d18fbc68a146c4526ed3e16b9c13413.zip
cpython-4e1786689d18fbc68a146c4526ed3e16b9c13413.tar.gz
cpython-4e1786689d18fbc68a146c4526ed3e16b9c13413.tar.bz2
Added localport/localhost initialization. This fixes socket.getsockname().
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Unsupported/mactcp/mactcpmodule.c2
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;