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:
parent
8c47be28f9
commit
12e6a9ad32
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user