1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

There's no real need for portfwd.c to reference `cfg' directly, when

it only needs one item from it and that can easily be passed in from
the call site in ssh.c.

[originally from svn r2564]
This commit is contained in:
Simon Tatham
2003-01-12 14:56:19 +00:00
parent 6a2c0436de
commit 5ecbac2441
3 changed files with 5 additions and 5 deletions

4
ssh.c
View File

@ -3121,7 +3121,7 @@ static void ssh1_protocol(Ssh ssh, unsigned char *in, int inlen, int ispkt)
if (sport && dport) {
if (type == 'L') {
pfd_addforward(host, dport, *saddr ? saddr : NULL,
sport, ssh);
sport, ssh, ssh->cfg.lport_acceptall);
logeventf(ssh, "Local port %.*s%.*s%.*s%.*s%d%.*s"
" forwarding to %s:%.*s%.*s%d%.*s",
(int)(*saddr?strlen(saddr):0), *saddr?saddr:NULL,
@ -5185,7 +5185,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
if (sport && dport) {
if (type == 'L') {
pfd_addforward(host, dport, *saddr ? saddr : NULL,
sport, ssh);
sport, ssh, ssh->cfg.lport_acceptall);
logeventf(ssh, "Local port %.*s%.*s%.*s%.*s%d%.*s"
" forwarding to %s:%.*s%.*s%d%.*s",
(int)(*saddr?strlen(saddr):0), *saddr?saddr:NULL,