projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the two existing DECL/GET_foo_FUNCTION macro sets used for dynamic
[u/mdw/putty]
/
portfwd.c
diff --git
a/portfwd.c
b/portfwd.c
index
54a6876
..
662d995
100644
(file)
--- a/
portfwd.c
+++ b/
portfwd.c
@@
-1,3
+1,7
@@
+/*
+ * SSH port forwarding.
+ */
+
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-274,6
+278,12
@@
static int pfd_receive(Plug plug, int urgent, char *data, int len)
*/
connect:
*/
connect:
+ /*
+ * Freeze the socket until the SSH server confirms the
+ * connection.
+ */
+ sk_set_frozen(pr->s, 1);
+
pr->c = new_sock_channel(pr->backhandle, pr->s);
if (pr->c == NULL) {
pfd_close(pr->s);
pr->c = new_sock_channel(pr->backhandle, pr->s);
if (pr->c == NULL) {
pfd_close(pr->s);
@@
-285,11
+295,6
@@
static int pfd_receive(Plug plug, int urgent, char *data, int len)
pr->dynamic = 0;
/*
pr->dynamic = 0;
/*
- * Now freeze the socket until the SSH server confirms the
- * connection.
- */
- sk_set_frozen(pr->s, 1);
- /*
* If there's any data remaining in our current buffer,
* save it to be sent on pfd_confirm().
*/
* If there's any data remaining in our current buffer,
* save it to be sent on pfd_confirm().
*/