1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

17161: Src/Modules/tcp.c: length parameter to accept()

wasn't initialised, causing random failures.
This commit is contained in:
Peter Stephenson 2002-05-14 17:29:49 +00:00
parent 757e68c5e7
commit 568d2e0aba
2 changed files with 6 additions and 0 deletions

@ -1,3 +1,8 @@
2002-05-14 Peter Stephenson <pws@csr.com>
* 17161: Src/Modules/tcp.c: length parameter to accept() wasn't
initialised, causing random failures.
2002-05-14 Sven Wischnowsky <wischnow@zsh.org>
* 17148: Completion/Base/Utility/_arguments,

@ -534,6 +534,7 @@ bin_ztcp(char *nam, char **args, char *ops, int func)
}
sess = zts_alloc(ZTCP_INBOUND);
len = sizeof(sess->peer.in);
if ((rfd = accept(lfd, (struct sockaddr *)&sess->peer.in, &len)) == -1)
{
zwarnnam(nam, "could not accept connection: %e", NULL, errno);