comparison 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
comparison
equal deleted inserted replaced
1784:94323a20e572 1785:9026f976eee8
282 if (origport > 65535 || destport > 65535) { 282 if (origport > 65535 || destport > 65535) {
283 TRACE(("leave newtcpdirect: port > 65535")) 283 TRACE(("leave newtcpdirect: port > 65535"))
284 goto out; 284 goto out;
285 } 285 }
286 286
287 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
288
287 snprintf(portstring, sizeof(portstring), "%u", destport); 289 snprintf(portstring, sizeof(portstring), "%u", destport);
288 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel, NULL, NULL); 290 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel, NULL, NULL);
289
290 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
291 291
292 err = SSH_OPEN_IN_PROGRESS; 292 err = SSH_OPEN_IN_PROGRESS;
293 293
294 out: 294 out:
295 m_free(desthost); 295 m_free(desthost);