From 4e1786689d18fbc68a146c4526ed3e16b9c13413 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 23 Oct 1995 13:56:33 +0000 Subject: [PATCH] Added localport/localhost initialization. This fixes socket.getsockname(). --- Mac/Unsupported/mactcp/mactcpmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mac/Unsupported/mactcp/mactcpmodule.c b/Mac/Unsupported/mactcp/mactcpmodule.c index e7dc31753c0..fc07f1e73e5 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;