summaryrefslogtreecommitdiffhomepage
path: root/svr-tcpfwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-tcpfwd.c')
-rw-r--r--svr-tcpfwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c
index 9a2310d..879de7e 100644
--- a/svr-tcpfwd.c
+++ b/svr-tcpfwd.c
@@ -284,10 +284,10 @@ static int newtcpdirect(struct Channel * channel) {
goto out;
}
+ channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
+
snprintf(portstring, sizeof(portstring), "%u", destport);
channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel, NULL, NULL);
-
- channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
err = SSH_OPEN_IN_PROGRESS;