mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Use buf_eatstring instead
This commit is contained in:
parent
38d7da5fe5
commit
5d60e5f312
@ -408,11 +408,9 @@ void cleantext(char* dirtytext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void recv_msg_global_request_cli(void) {
|
static void recv_msg_global_request_cli(void) {
|
||||||
unsigned int len = 0;
|
|
||||||
unsigned int wantreply = 0;
|
unsigned int wantreply = 0;
|
||||||
|
|
||||||
len = buf_getint(ses.payload);
|
buf_eatstring(ses.payload);
|
||||||
buf_incrpos(ses.payload, len);
|
|
||||||
wantreply = buf_getbool(ses.payload);
|
wantreply = buf_getbool(ses.payload);
|
||||||
|
|
||||||
TRACE(("recv_msg_global_request_cli: want_reply: %u", wantreply));
|
TRACE(("recv_msg_global_request_cli: want_reply: %u", wantreply));
|
||||||
|
@ -39,13 +39,11 @@
|
|||||||
|
|
||||||
/* This is better than SSH_MSG_UNIMPLEMENTED */
|
/* This is better than SSH_MSG_UNIMPLEMENTED */
|
||||||
void recv_msg_global_request_remotetcp() {
|
void recv_msg_global_request_remotetcp() {
|
||||||
unsigned int len = 0;
|
|
||||||
unsigned int wantreply = 0;
|
unsigned int wantreply = 0;
|
||||||
|
|
||||||
TRACE(("recv_msg_global_request_remotetcp: remote tcp forwarding not compiled in"))
|
TRACE(("recv_msg_global_request_remotetcp: remote tcp forwarding not compiled in"))
|
||||||
|
|
||||||
len = buf_getint(ses.payload);
|
buf_eatstring(ses.payload);
|
||||||
buf_incrpos(ses.payload, len);
|
|
||||||
wantreply = buf_getbool(ses.payload);
|
wantreply = buf_getbool(ses.payload);
|
||||||
if (wantreply) {
|
if (wantreply) {
|
||||||
send_msg_request_failure();
|
send_msg_request_failure();
|
||||||
|
Loading…
Reference in New Issue
Block a user