1
0
Fork 0
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:
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

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