# HG changeset patch # User Matt Johnston # Date 1607613528 -28800 # Node ID 249681d9ecda383b7241b3cc360884093015dede # Parent 1fc0012b9c38156d52c596ffb7b8da437b20d908 Use buf_eatstring instead diff -r 1fc0012b9c38 -r 249681d9ecda cli-session.c --- a/cli-session.c Thu Dec 10 16:13:13 2020 +0100 +++ b/cli-session.c Thu Dec 10 23:18:48 2020 +0800 @@ -408,11 +408,9 @@ } static void recv_msg_global_request_cli(void) { - unsigned int len = 0; unsigned int wantreply = 0; - len = buf_getint(ses.payload); - buf_incrpos(ses.payload, len); + buf_eatstring(ses.payload); wantreply = buf_getbool(ses.payload); TRACE(("recv_msg_global_request_cli: want_reply: %u", wantreply)); diff -r 1fc0012b9c38 -r 249681d9ecda svr-tcpfwd.c --- a/svr-tcpfwd.c Thu Dec 10 16:13:13 2020 +0100 +++ b/svr-tcpfwd.c Thu Dec 10 23:18:48 2020 +0800 @@ -39,13 +39,11 @@ /* This is better than SSH_MSG_UNIMPLEMENTED */ void recv_msg_global_request_remotetcp() { - unsigned int len = 0; unsigned int wantreply = 0; TRACE(("recv_msg_global_request_remotetcp: remote tcp forwarding not compiled in")) - len = buf_getint(ses.payload); - buf_incrpos(ses.payload, len); + buf_eatstring(ses.payload); wantreply = buf_getbool(ses.payload); if (wantreply) { send_msg_request_failure();