Skip to content
Snippets Groups Projects
Commit 59943acf authored by Matt Johnston's avatar Matt Johnston
Browse files

Fix crash with -R forwarding

parent d4e7654e
Branches
Tags
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment