]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added localport/localhost initialization. This fixes socket.getsockname().
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 23 Oct 1995 13:56:33 +0000 (13:56 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 23 Oct 1995 13:56:33 +0000 (13:56 +0000)
Mac/Unsupported/mactcp/mactcpmodule.c

index e7dc31753c0ab3a92445bfd206edef3d434b1117..fc07f1e73e5f5927a105b0bc3b8b376893b00e8b 100644 (file)
@@ -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;