Added localport/localhost initialization. This fixes socket.getsockname().

This commit is contained in:
Jack Jansen 1995-10-23 13:56:33 +00:00
parent 9a78536900
commit 4e1786689d
1 changed files with 2 additions and 0 deletions

View 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;