mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 10:41:39 +00:00
Fix a few compile warnings
This commit is contained in:
parent
5996c3824c
commit
c4861340e9
@ -156,8 +156,6 @@ static buffer * agent_request(unsigned char type, buffer *data) {
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE(("agent_request readlen is %d", readlen))
|
|
||||||
|
|
||||||
buf_resize(inbuf, readlen);
|
buf_resize(inbuf, readlen);
|
||||||
buf_setpos(inbuf, 0);
|
buf_setpos(inbuf, 0);
|
||||||
ret = atomicio(read, fd, buf_getwriteptr(inbuf, readlen), readlen);
|
ret = atomicio(read, fd, buf_getwriteptr(inbuf, readlen), readlen);
|
||||||
@ -167,7 +165,6 @@ static buffer * agent_request(unsigned char type, buffer *data) {
|
|||||||
}
|
}
|
||||||
buf_incrwritepos(inbuf, readlen);
|
buf_incrwritepos(inbuf, readlen);
|
||||||
buf_setpos(inbuf, 0);
|
buf_setpos(inbuf, 0);
|
||||||
TRACE(("agent_request success, length %d", readlen))
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (payload)
|
if (payload)
|
||||||
|
@ -309,7 +309,6 @@ static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen) {
|
|||||||
buf_putbytes(line, algoname, algolen);
|
buf_putbytes(line, algoname, algolen);
|
||||||
buf_putbyte(line, ' ');
|
buf_putbyte(line, ' ');
|
||||||
len = line->size - line->pos;
|
len = line->size - line->pos;
|
||||||
TRACE(("keybloblen %d, len %d", keybloblen, len))
|
|
||||||
/* The only failure with base64 is buffer_overflow, but buf_getwriteptr
|
/* The only failure with base64 is buffer_overflow, but buf_getwriteptr
|
||||||
* will die horribly in the case anyway */
|
* will die horribly in the case anyway */
|
||||||
base64_encode(keyblob, keybloblen, buf_getwriteptr(line, len), &len);
|
base64_encode(keyblob, keybloblen, buf_getwriteptr(line, len), &len);
|
||||||
|
@ -271,7 +271,7 @@ void main_noinetd() {
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
addrandom(&fork_ret, sizeof(fork_ret));
|
addrandom((void*)&fork_ret, sizeof(fork_ret));
|
||||||
|
|
||||||
if (fork_ret > 0) {
|
if (fork_ret > 0) {
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ void x11cleanup(struct ChanSess *chansess) {
|
|||||||
m_free(chansess->x11authprot);
|
m_free(chansess->x11authprot);
|
||||||
m_free(chansess->x11authcookie);
|
m_free(chansess->x11authcookie);
|
||||||
|
|
||||||
TRACE(("chansess %x", chansess))
|
TRACE(("chansess %p", chansess))
|
||||||
if (chansess->x11listener != NULL) {
|
if (chansess->x11listener != NULL) {
|
||||||
remove_listener(chansess->x11listener);
|
remove_listener(chansess->x11listener);
|
||||||
chansess->x11listener = NULL;
|
chansess->x11listener = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user