diff cli-tcpfwd.c @ 1785:9026f976eee8

fuzz: work around fuzz_connect_remote() limitations
author Matt Johnston <matt@ucc.asn.au>
date Sun, 06 Dec 2020 21:27:25 +0800
parents 79eef94ccea9
children a7cc3332d8ab
line wrap: on
line diff
--- a/cli-tcpfwd.c	Sat Dec 05 14:56:53 2020 +0800
+++ b/cli-tcpfwd.c	Sun Dec 06 21:27:25 2020 +0800
@@ -273,11 +273,11 @@
                 origaddr, origport);
 		goto out;
 	}
+
+	channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
 	
 	snprintf(portstring, sizeof(portstring), "%u", fwd->connectport);
 	channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel, NULL, NULL);
-
-	channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
 	
 	err = SSH_OPEN_IN_PROGRESS;