1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

Pass the Ssh structure to portfwd.c with a tag.

Again, safer than using a 'void *'.
This commit is contained in:
Simon Tatham
2018-09-11 15:33:10 +01:00
parent 3814a5cee8
commit c51fe7c217
4 changed files with 13 additions and 14 deletions

3
ssh.c
View File

@ -11293,9 +11293,8 @@ static void ssh_special(void *handle, Telnet_Special code)
}
}
void *new_sock_channel(void *handle, struct PortForwarding *pf)
void *new_sock_channel(Ssh ssh, struct PortForwarding *pf)
{
Ssh ssh = (Ssh) handle;
struct ssh_channel *c;
c = snew(struct ssh_channel);