summaryrefslogtreecommitdiffhomepage
path: root/tcp-accept.c
diff options
context:
space:
mode:
authorGaël PORTAY <gael.portay@gmail.com>2015-05-02 23:03:27 +0200
committerGaël PORTAY <gael.portay@gmail.com>2015-05-05 20:39:14 +0200
commit6f05e810d99d55997544bf6a8130b5e357d8ce82 (patch)
tree21aca619bff409258e7833a1f5cef72a74dc4b19 /tcp-accept.c
parent947d2697cf01acd28ce7eb619dbcec2ac4a0e381 (diff)
Turn addr local variable into char *
Diffstat (limited to 'tcp-accept.c')
-rw-r--r--tcp-accept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp-accept.c b/tcp-accept.c
index 596d9c9..fc9b4c1 100644
--- a/tcp-accept.c
+++ b/tcp-accept.c
@@ -75,7 +75,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) {
}
if (send_msg_channel_open_init(fd, tcpinfo->chantype) == DROPBEAR_SUCCESS) {
- unsigned char* addr = NULL;
+ char* addr = NULL;
unsigned int port = 0;
if (tcpinfo->tcp_type == direct) {
@@ -94,7 +94,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) {
if (addr == NULL) {
addr = "localhost";
}
- buf_putstring(ses.writepayload, addr, strlen(addr));
+ buf_putstring(ses.writepayload, (const unsigned char *)addr, strlen(addr));
buf_putint(ses.writepayload, port);
/* originator ip */