Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e17866

Browse files
committed
Added localport/localhost initialization. This fixes socket.getsockname().
1 parent 9a78536 commit 4e17866

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Unsupported/mactcp/mactcpmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ newtcpsobject(bufsize)
615615
return NULL;
616616
}
617617
INCREF(None);
618+
self->localhost = 0;
619+
self->localport = 0;
618620
self->asr = None;
619621
self->async_busy = 0;
620622
self->async_err = 0;

0 commit comments

Comments
 (0)