mirror of
https://github.com/clearml/dropbear
synced 2025-02-26 05:38:53 +00:00
Turn addr local variable into char *
This commit is contained in:
parent
947d2697cf
commit
6f05e810d9
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user