Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1784:94323a20e572 | 1785:9026f976eee8 |
---|---|
271 cleantext(origaddr); | 271 cleantext(origaddr); |
272 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"", | 272 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"", |
273 origaddr, origport); | 273 origaddr, origport); |
274 goto out; | 274 goto out; |
275 } | 275 } |
276 | |
277 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; | |
276 | 278 |
277 snprintf(portstring, sizeof(portstring), "%u", fwd->connectport); | 279 snprintf(portstring, sizeof(portstring), "%u", fwd->connectport); |
278 channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel, NULL, NULL); | 280 channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel, NULL, NULL); |
279 | |
280 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; | |
281 | 281 |
282 err = SSH_OPEN_IN_PROGRESS; | 282 err = SSH_OPEN_IN_PROGRESS; |
283 | 283 |
284 out: | 284 out: |
285 m_free(origaddr); | 285 m_free(origaddr); |