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:
parent
757e68c5e7
commit
568d2e0aba
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user