1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 17:01:19 +02:00

17102: looking up TCP sessions by fd returned the wrong pointer

This commit is contained in:
Peter Stephenson 2002-05-08 16:45:21 +00:00
parent 8c47be28f9
commit 12e6a9ad32
2 changed files with 4 additions and 1 deletions

@ -1,5 +1,8 @@
2002-05-08 Peter Stephenson <pws@csr.com>
* 17102: Src/Modules/tcp.c: looking up TCP sessions by fd returned
the wrong pointer.
* 17097: Src/Modules/tcp.c: closing all TCP sessions referenced
freed memory.

@ -271,7 +271,7 @@ zts_byfd(int fd)
for (node = firstnode(ztcp_sessions); node; incnode(node))
if (((Tcp_session)getdata(node))->fd == fd)
return (Tcp_session)node;
return (Tcp_session)getdata(node);
return NULL;
}