1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01: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

View file

@ -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.

View file

@ -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;
}