mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Fix crash with -R forwarding
This commit is contained in:
parent
d4e7654ed0
commit
59943acffe
@ -82,6 +82,9 @@ static void tcp_acceptor(struct Listener *listener, int sock) {
|
|||||||
port = tcpinfo->listenport;
|
port = tcpinfo->listenport;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (addr == NULL) {
|
||||||
|
addr = "localhost";
|
||||||
|
}
|
||||||
buf_putstring(ses.writepayload, addr, strlen(addr));
|
buf_putstring(ses.writepayload, addr, strlen(addr));
|
||||||
buf_putint(ses.writepayload, port);
|
buf_putint(ses.writepayload, port);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user