mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 05:21:00 +01:00
17102: looking up TCP sessions by fd returned the wrong pointer
This commit is contained in:
parent
8c47be28f9
commit
12e6a9ad32
2 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue