fuzz: work around fuzz_connect_remote() limitations

This commit is contained in:
Matt Johnston
2020-12-06 21:27:25 +08:00
parent d439ed26e4
commit 007a5925dc
3 changed files with 10 additions and 4 deletions

View File

@@ -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;