~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pty backend now supports the changed function interface, so pterm
[sgt/putty]
/
portfwd.c
diff --git
a/portfwd.c
b/portfwd.c
index
919d27d
..
e65dd31
100644
(file)
--- a/
portfwd.c
+++ b/
portfwd.c
@@
-177,7
+177,7
@@
static int pfd_accepting(Plug p, void *sock)
return err != NULL;
}
return err != NULL;
}
- pr->c = new_sock_channel(s);
+ pr->c = new_sock_channel(
backhandle,
s);
strcpy(pr->hostname, org->hostname);
pr->port = org->port;
strcpy(pr->hostname, org->hostname);
pr->port = org->port;
@@
-192,7
+192,8
@@
static int pfd_accepting(Plug p, void *sock)
return 1;
} else {
/* asks to forward to the specified host/port for this */
return 1;
} else {
/* asks to forward to the specified host/port for this */
- ssh_send_port_open(pr->c, pr->hostname, pr->port, "forwarding");
+ ssh_send_port_open(backhandle, pr->c, pr->hostname,
+ pr->port, "forwarding");
}
return 0;
}
return 0;