mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +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;
|
||||
}
|
||||
|
||||
if (addr == NULL) {
|
||||
addr = "localhost";
|
||||
}
|
||||
buf_putstring(ses.writepayload, addr, strlen(addr));
|
||||
buf_putint(ses.writepayload, port);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user