summaryrefslogtreecommitdiffhomepage
path: root/svr-tcpfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-12-06 21:27:25 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-12-06 21:27:25 +0800
commit007a5925dcdc63c9aa2550c902a8a0493465ba20 (patch)
tree6d91fc70265737446850301b1997a0f130976512 /svr-tcpfwd.c
parentd439ed26e41895acbfea932c369babff8f1cbb3a (diff)
fuzz: work around fuzz_connect_remote() limitations
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;