From 5d60e5f312ed1f47fe27618bf3d4310f4012a876 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 10 Dec 2020 23:18:48 +0800 Subject: Use buf_eatstring instead --- svr-tcpfwd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'svr-tcpfwd.c') diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c index 11b9222..c3746bf 100644 --- a/svr-tcpfwd.c +++ b/svr-tcpfwd.c @@ -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(); -- cgit v1.2.3