diff svr-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 9b02c49bd396
children 1fc0012b9c38
line wrap: on
line diff
--- a/svr-tcpfwd.c	Sat Dec 05 14:56:53 2020 +0800
+++ b/svr-tcpfwd.c	Sun Dec 06 21:27:25 2020 +0800
@@ -284,10 +284,10 @@
 		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;