Skip to content
Snippets Groups Projects
Commit 6f05e810 authored by Gaël PORTAY's avatar Gaël PORTAY
Browse files

Turn addr local variable into char *

parent 947d2697
No related merge requests found
...@@ -75,7 +75,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) { ...@@ -75,7 +75,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) {
} }
if (send_msg_channel_open_init(fd, tcpinfo->chantype) == DROPBEAR_SUCCESS) { if (send_msg_channel_open_init(fd, tcpinfo->chantype) == DROPBEAR_SUCCESS) {
unsigned char* addr = NULL; char* addr = NULL;
unsigned int port = 0; unsigned int port = 0;
if (tcpinfo->tcp_type == direct) { if (tcpinfo->tcp_type == direct) {
...@@ -94,7 +94,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) { ...@@ -94,7 +94,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) {
if (addr == NULL) { if (addr == NULL) {
addr = "localhost"; addr = "localhost";
} }
buf_putstring(ses.writepayload, addr, strlen(addr)); buf_putstring(ses.writepayload, (const unsigned char *)addr, strlen(addr));
buf_putint(ses.writepayload, port); buf_putint(ses.writepayload, port);
/* originator ip */ /* originator ip */
......
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